From 8c3bf4c79a42e5ad30498e3dbd8efe42ad1349d2 Mon Sep 17 00:00:00 2001 From: kojix2 <2xijok@gmail.com> Date: Thu, 4 Feb 2021 18:18:55 +0900 Subject: [PATCH] Fix tests --- test/youplot/simple_test.rb | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/test/youplot/simple_test.rb b/test/youplot/simple_test.rb index 12b4e9f..44fc3b1 100644 --- a/test/youplot/simple_test.rb +++ b/test/youplot/simple_test.rb @@ -174,7 +174,7 @@ class YouPlotSimpleTest < Test::Unit::TestCase end test :line_w do - YouPlot::Command.new(['line', '--w', '17']).run + YouPlot::Command.new(['line', '-w', '17']).run assert_equal fixture('simple-lineplot-width-17.txt'), @stderr_file.read end @@ -184,7 +184,7 @@ class YouPlotSimpleTest < Test::Unit::TestCase end test :line_h do - YouPlot::Command.new(['line', '--height', '17']).run + YouPlot::Command.new(['line', '-h', '17']).run assert_equal fixture('simple-lineplot-height-17.txt'), @stderr_file.read end @@ -194,7 +194,7 @@ class YouPlotSimpleTest < Test::Unit::TestCase end test :line_m do - YouPlot::Command.new(['line', '--m', '17']).run + YouPlot::Command.new(['line', '-m', '17']).run assert_equal fixture('simple-lineplot-margin-17.txt'), @stderr_file.read end @@ -208,11 +208,21 @@ class YouPlotSimpleTest < Test::Unit::TestCase assert_equal fixture('simple-lineplot-border-corners.txt'), @stderr_file.read end + test :line_b_corners do + YouPlot::Command.new(['line', '-b', 'corners']).run + assert_equal fixture('simple-lineplot-border-corners.txt'), @stderr_file.read + end + test :line_border_barplot do YouPlot::Command.new(['line', '--border', 'barplot']).run assert_equal fixture('simple-lineplot-border-barplot.txt'), @stderr_file.read end + test :line_b_barplot do + YouPlot::Command.new(['line', '-b', 'barplot']).run + assert_equal fixture('simple-lineplot-border-barplot.txt'), @stderr_file.read + end + test :line_canvas_ascii do YouPlot::Command.new(['line', '--canvas', 'ascii']).run assert_equal fixture('simple-lineplot-canvas-ascii.txt'), @stderr_file.read