Revert "Use value_counts instead of tally"

This commit is contained in:
kojix2
2021-05-28 09:36:08 +09:00
parent 715ec8f908
commit 97d6c3e73f
5 changed files with 53 additions and 21 deletions

View File

@@ -112,15 +112,17 @@ class YouPlotSimpleTest < Test::Unit::TestCase
assert_equal fixture('simple-boxplot.txt'), @stderr_file.read
end
test :c do
YouPlot::Command.new(['count']).run
assert_equal fixture('simple-count.txt'), @stderr_file.read
end
# test :c do
# omit
# YouPlot::Command.new(['count', '-H', '-d,']).run
# assert_equal fixture('iris-count.txt'), @stderr_file.read
# end
test :count do
YouPlot::Command.new(['c']).run
assert_equal fixture('simple-count.txt'), @stderr_file.read
end
# test :count do
# omit
# 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(['line', '-o']).run