Add iris-count test

This commit is contained in:
kojix2
2021-01-19 22:36:36 +09:00
parent 8c4011d368
commit fbfcf80d25
2 changed files with 48 additions and 0 deletions

View File

@@ -104,6 +104,16 @@ class YouPlotCommandTest < Test::Unit::TestCase
assert_equal fixture('iris-boxplot.txt'), @stderr_file.read
end
test :c do
YouPlot::Command.new(['count', '-H', '-d,']).run
assert_equal fixture('iris-count.txt'), @stderr_file.read
end
test :count do
YouPlot::Command.new(['c', '-H', '-d,']).run
assert_equal fixture('iris-count.txt'), @stderr_file.read
end
test :plot_output_stdout do
YouPlot::Command.new(['bar', '-o', '-H', '-d,', '-t', 'IRIS-BARPLOT']).run
assert_equal '', @stderr_file.read