Skip to content

Commit

Permalink
aozora-bunko test: use other book for UTF-8 encoding test
Browse files Browse the repository at this point in the history
Because https://www.lcv.ne.jp/~ibs52086/fire/ has a TLS related
problem.
  • Loading branch information
kou committed Nov 28, 2023
1 parent 1621f56 commit d1764c4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/test-aozora-bunko.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,13 @@ def setup
book = Datasets::AozoraBunko::Book.new
book.cache_path = @cache_path

book.title_id = '000750'
book.person_id = '000146'
book.html_file_url = 'http://www.lcv.ne.jp/~ibs52086/fire/'
book.title_id = '061551'
book.person_id = '002225'
book.html_file_url = 'http://minken.party/2019/03/09/yakunin/'
book.html_file_character_encoding = 'UTF-8'

assert_equal('<title>種田山頭火句集 | 『草木塔抄』他 FIRE ON THE MOUNTAIN</title>',
book.html.split("\n")[7])
assert_equal('<title>自由民権現代研究会</title>',
book.html[/<title>.*?<\/title>/])
end
end

Expand Down

0 comments on commit d1764c4

Please sign in to comment.