Skip to content

Commit 5cefa26

Browse files
authored
Merge pull request #28 from red-data-tools/fix_histogram
UnicodePlot.histogram([1, 2]) shouldn't raise error
2 parents 0f6170a + 56349cf commit 5cefa26

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

test/test-histogram.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,5 +108,11 @@ def setup
108108
assert_equal(fixture_path("histogram/parameters2.txt").read,
109109
output)
110110
end
111+
112+
test("issue #24") do
113+
assert_nothing_raised do
114+
UnicodePlot.histogram([1, 2])
115+
end
116+
end
111117
end
112118
end

unicode_plot.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
2929
spec.executables = spec.files.grep(%r{^exe/}) {|f| File.basename(f) }
3030
spec.require_paths = ["lib"]
3131

32-
spec.add_runtime_dependency "enumerable-statistics", ">= 2.0.0.pre"
32+
spec.add_runtime_dependency "enumerable-statistics", ">= 2.0.1"
3333

3434
spec.add_development_dependency "bundler", ">= 1.17"
3535
spec.add_development_dependency "rake"

0 commit comments

Comments
 (0)