mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-06-24 18:11:12 +08:00
Add simple tests for count again
This commit is contained in:
parent
cfbbc33286
commit
f57090cc9b
38
test/fixtures/iris-count.txt
vendored
38
test/fixtures/iris-count.txt
vendored
@ -1,38 +0,0 @@
|
|||||||
sepal_length
|
|
||||||
┌ ┐
|
|
||||||
5.0 ┤■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 10.0
|
|
||||||
6.3 ┤■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 9.0
|
|
||||||
5.1 ┤■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 9.0
|
|
||||||
6.7 ┤■■■■■■■■■■■■■■■■■■■■■■■■■■■ 8.0
|
|
||||||
5.7 ┤■■■■■■■■■■■■■■■■■■■■■■■■■■■ 8.0
|
|
||||||
6.4 ┤■■■■■■■■■■■■■■■■■■■■■■■■ 7.0
|
|
||||||
5.5 ┤■■■■■■■■■■■■■■■■■■■■■■■■ 7.0
|
|
||||||
5.8 ┤■■■■■■■■■■■■■■■■■■■■■■■■ 7.0
|
|
||||||
5.6 ┤■■■■■■■■■■■■■■■■■■■■ 6.0
|
|
||||||
6.1 ┤■■■■■■■■■■■■■■■■■■■■ 6.0
|
|
||||||
6.0 ┤■■■■■■■■■■■■■■■■■■■■ 6.0
|
|
||||||
5.4 ┤■■■■■■■■■■■■■■■■■■■■ 6.0
|
|
||||||
4.9 ┤■■■■■■■■■■■■■■■■■■■■ 6.0
|
|
||||||
6.5 ┤■■■■■■■■■■■■■■■■■ 5.0
|
|
||||||
4.8 ┤■■■■■■■■■■■■■■■■■ 5.0
|
|
||||||
7.7 ┤■■■■■■■■■■■■■■ 4.0
|
|
||||||
6.2 ┤■■■■■■■■■■■■■■ 4.0
|
|
||||||
6.9 ┤■■■■■■■■■■■■■■ 4.0
|
|
||||||
5.2 ┤■■■■■■■■■■■■■■ 4.0
|
|
||||||
4.6 ┤■■■■■■■■■■■■■■ 4.0
|
|
||||||
7.2 ┤■■■■■■■■■■ 3.0
|
|
||||||
6.8 ┤■■■■■■■■■■ 3.0
|
|
||||||
5.9 ┤■■■■■■■■■■ 3.0
|
|
||||||
4.4 ┤■■■■■■■■■■ 3.0
|
|
||||||
6.6 ┤■■■■■■■ 2.0
|
|
||||||
4.7 ┤■■■■■■■ 2.0
|
|
||||||
7.9 ┤■■■ 1.0
|
|
||||||
7.4 ┤■■■ 1.0
|
|
||||||
7.3 ┤■■■ 1.0
|
|
||||||
7.6 ┤■■■ 1.0
|
|
||||||
7.1 ┤■■■ 1.0
|
|
||||||
7.0 ┤■■■ 1.0
|
|
||||||
5.3 ┤■■■ 1.0
|
|
||||||
4.5 ┤■■■ 1.0
|
|
||||||
4.3 ┤■■■ 1.0
|
|
||||||
└ ┘
|
|
12
test/fixtures/simple-count.txt
vendored
Normal file
12
test/fixtures/simple-count.txt
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
┌ ┐
|
||||||
|
50 ┤■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 1.0
|
||||||
|
-50 ┤■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 1.0
|
||||||
|
40 ┤■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 1.0
|
||||||
|
-40 ┤■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 1.0
|
||||||
|
30 ┤■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 1.0
|
||||||
|
-30 ┤■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 1.0
|
||||||
|
20 ┤■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 1.0
|
||||||
|
-20 ┤■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 1.0
|
||||||
|
10 ┤■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 1.0
|
||||||
|
-10 ┤■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 1.0
|
||||||
|
└ ┘
|
@ -112,17 +112,15 @@ class YouPlotSimpleTest < Test::Unit::TestCase
|
|||||||
assert_equal fixture('simple-boxplot.txt'), @stderr_file.read
|
assert_equal fixture('simple-boxplot.txt'), @stderr_file.read
|
||||||
end
|
end
|
||||||
|
|
||||||
# test :c do
|
test :c do
|
||||||
# omit
|
YouPlot::Command.new(['count']).run
|
||||||
# YouPlot::Command.new(['count', '-H', '-d,']).run
|
assert_equal fixture('simple-count.txt'), @stderr_file.read
|
||||||
# assert_equal fixture('iris-count.txt'), @stderr_file.read
|
end
|
||||||
# end
|
|
||||||
|
|
||||||
# test :count do
|
test :count do
|
||||||
# omit
|
YouPlot::Command.new(['c']).run
|
||||||
# YouPlot::Command.new(['c', '-H', '-d,']).run
|
assert_equal fixture('simple-count.txt'), @stderr_file.read
|
||||||
# assert_equal fixture('iris-count.txt'), @stderr_file.read
|
end
|
||||||
# end
|
|
||||||
|
|
||||||
test :plot_output_stdout do
|
test :plot_output_stdout do
|
||||||
YouPlot::Command.new(['line', '-o']).run
|
YouPlot::Command.new(['line', '-o']).run
|
||||||
|
Loading…
Reference in New Issue
Block a user