mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-06 07:10:10 +08:00
Rubocop auto correct
This commit is contained in:
parent
b165de43ed
commit
75db26da53
@ -185,7 +185,7 @@ module YouPlot
|
|||||||
The first item is: \e[35m\"#{series[0][0]}\"\e[0m
|
The first item is: \e[35m\"#{series[0][0]}\"\e[0m
|
||||||
The last item is : \e[35m\"#{series[0][-1]}\"\e[0m
|
The last item is : \e[35m\"#{series[0][-1]}\"\e[0m
|
||||||
EOS
|
EOS
|
||||||
# Note: Error messages cannot be colored.
|
# NOTE: Error messages cannot be colored.
|
||||||
YouPlot.run_as_executable ? exit(1) : raise(Error)
|
YouPlot.run_as_executable ? exit(1) : raise(Error)
|
||||||
end
|
end
|
||||||
if fmt == 'xyxy' && series.size.odd?
|
if fmt == 'xyxy' && series.size.odd?
|
||||||
@ -195,7 +195,7 @@ module YouPlot
|
|||||||
Number of series: \e[35m#{series.size}\e[0m
|
Number of series: \e[35m#{series.size}\e[0m
|
||||||
Headers: \e[35m#{data.headers.inspect}\e[0m
|
Headers: \e[35m#{data.headers.inspect}\e[0m
|
||||||
EOS
|
EOS
|
||||||
# Note: Error messages cannot be colored.
|
# NOTE: Error messages cannot be colored.
|
||||||
YouPlot.run_as_executable ? exit(1) : raise(Error)
|
YouPlot.run_as_executable ? exit(1) : raise(Error)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -253,7 +253,6 @@ class YouPlotSimpleTest < Test::Unit::TestCase
|
|||||||
assert_equal fixture('simple-lineplot-ylim--25-50.txt'), @stderr_file.read
|
assert_equal fixture('simple-lineplot-ylim--25-50.txt'), @stderr_file.read
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
test :line_xlim_and_ylim do
|
test :line_xlim_and_ylim do
|
||||||
YouPlot::Command.new(['line', '--xlim', '-1,5', '--ylim', '-25,50']).run
|
YouPlot::Command.new(['line', '--xlim', '-1,5', '--ylim', '-25,50']).run
|
||||||
assert_equal fixture('simple-lineplot-xlim--1-5-ylim--25-50.txt'), @stderr_file.read
|
assert_equal fixture('simple-lineplot-xlim--1-5-ylim--25-50.txt'), @stderr_file.read
|
||||||
|
Loading…
Reference in New Issue
Block a user