mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-05 22:31:11 +08:00
Add encoding test
This commit is contained in:
parent
161c85045f
commit
c8bdafe9a2
BIN
test/fixtures/iris_utf16.csv
vendored
Normal file
BIN
test/fixtures/iris_utf16.csv
vendored
Normal file
Binary file not shown.
|
@ -147,4 +147,10 @@ class YouPlotIRISTest < Test::Unit::TestCase
|
||||
assert_equal '', @stderr_file.read
|
||||
assert_equal '', @stdout_file.read
|
||||
end
|
||||
|
||||
test :encoding do
|
||||
$stdin = File.open(File.expand_path('../fixtures/iris_utf16.csv', __dir__), 'r')
|
||||
YouPlot::Command.new(['s', '--encoding', 'UTF-16', '-H', '-d,', '-t', 'IRIS-SCATTER']).run
|
||||
assert_equal fixture('iris-scatter.txt'), @stderr_file.read
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user