Skip to content

Commit

Permalink
fix not to change end-of-line characters
Browse files Browse the repository at this point in the history
  • Loading branch information
takahashim committed Feb 2, 2024
1 parent db0b08f commit 40b1c84
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/test_bin_aozora2html.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ def test_exec_aozora2html
output = File.join(dir, 'out.html')
cmd = "bundle exec aozora2html #{@input} #{output}"
system(cmd)
input_content = File.read('./sample/chukiichiran_kinyurei.html')
output_content = File.read(output)
input_content = File.binread('./sample/chukiichiran_kinyurei.html')
output_content = File.binread(output)
assert_equal input_content, output_content
end
end
Expand All @@ -24,8 +24,8 @@ def test_exec_aozora2html_jisx0213
output = File.join(dir, 'out.html')
cmd = "bundle exec aozora2html --use-jisx0213 #{@input} #{output}"
system(cmd)
input_content = File.read('./sample/chukiichiran_kinyurei_jisx0213.html')
output_content = File.read(output)
input_content = File.binread('./sample/chukiichiran_kinyurei_jisx0213.html')
output_content = File.binread(output)
assert_equal input_content, output_content
end
end
Expand All @@ -35,8 +35,8 @@ def test_exec_aozora2html_unicode
output = File.join(dir, 'out.html')
cmd = "bundle exec aozora2html --use-unicode #{@input} #{output}"
system(cmd)
input_content = File.read('./sample/chukiichiran_kinyurei_unicode.html')
output_content = File.read(output)
input_content = File.binread('./sample/chukiichiran_kinyurei_unicode.html')
output_content = File.binread(output)
assert_equal input_content, output_content
end
end
Expand Down

0 comments on commit 40b1c84

Please sign in to comment.