Skip to content

Commit

Permalink
Add more parser test entries for later
Browse files Browse the repository at this point in the history
  • Loading branch information
btrkeks committed May 31, 2024
1 parent 9dd97cc commit 326d98d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/files/testentries/7_entry
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[["面白い", "おもしろい", "⭐", "adj-i", 200, [{"type": "structured-content", "content": {"tag": "div", "content": [{"tag": "span", "style": {"verticalAlign": "text-bottom", "marginRight": 0.25}, "data": {"code": "adj-i"}, "content": {"tag": "img", "height": 1.2, "width": 4.65, "sizeUnits": "em", "appearance": "auto", "title": "adjective (keiyoushi)", "collapsible": false, "collapsed": false, "background": false, "path": "jitendex/adjective.svg"}}, {"tag": "ol", "content": [{"tag": "li", "style": {"listStyleType": "\"① \""}, "data": {"sense-number": "1"}, "content": [{"tag": "ul", "data": {"content": "glossary"}, "content": [{"tag": "li", "content": "interesting"}, {"tag": "li", "content": "fascinating"}, {"tag": "li", "content": "intriguing"}, {"tag": "li", "content": "enthralling"}]}, {"tag": "ul", "style": {"marginBottom": 0.5}, "content": [{"tag": "li", "lang": "ja", "style": {"fontSize": "120%", "listStyleType": "circle"}, "data": {"content": "example-sentence-a"}, "content": [{"tag": "ruby", "content": ["新", {"tag": "rt", "content": "しん"}]}, {"tag": "ruby", "content": ["聞", {"tag": "rt", "content": "ぶん"}]}, "には", {"tag": "ruby", "content": ["何", {"tag": "rt", "content": "なに"}]}, "も", {"tag": "span", "style": {"textDecorationLine": "underline"}, "content": [{"tag": "ruby", "content": ["面", {"tag": "rt", "content": "おも"}]}, {"tag": "ruby", "content": ["白", {"tag": "rt", "content": "しろ"}]}, "い"]}, "ことは", {"tag": "ruby", "content": ["載", {"tag": "rt", "content": "の"}]}, "っていない。"]}, {"tag": "li", "lang": "en", "style": {"fontSize": "70%", "listStyleType": "none"}, "data": {"content": "example-sentence-b"}, "content": "There is nothing interesting in the newspaper."}]}]}, {"tag": "li", "style": {"listStyleType": "\"② \""}, "data": {"sense-number": "2"}, "content": [{"tag": "ul", "data": {"content": "glossary"}, "content": [{"tag": "li", "content": "amusing"}, {"tag": "li", "content": "funny"}, {"tag": "li", "content": "comical"}]}, {"tag": "ul", "style": {"marginBottom": 0.5}, "content": [{"tag": "li", "lang": "ja", "style": {"fontSize": "120%", "listStyleType": "circle"}, "data": {"content": "example-sentence-a"}, "content": ["これは", {"tag": "ruby", "content": ["私", {"tag": "rt", "content": "わたし"}]}, "が", {"tag": "ruby", "content": ["読", {"tag": "rt", "content": "よ"}]}, "んだ", {"tag": "ruby", "content": ["中", {"tag": "rt", "content": "なか"}]}, "で", {"tag": "ruby", "content": ["一", {"tag": "rt", "content": "いち"}]}, {"tag": "ruby", "content": ["番", {"tag": "rt", "content": "ばん"}]}, {"tag": "span", "style": {"textDecorationLine": "underline"}, "content": [{"tag": "ruby", "content": ["面", {"tag": "rt", "content": "おも"}]}, {"tag": "ruby", "content": ["白", {"tag": "rt", "content": "しろ"}]}, "い"]}, {"tag": "ruby", "content": ["本", {"tag": "rt", "content": "ほん"}]}, "です。"]}, {"tag": "li", "lang": "en", "style": {"fontSize": "70%", "listStyleType": "none"}, "data": {"content": "example-sentence-b"}, "content": "This is the funniest book in my reading."}, {"tag": "li", "lang": "ja", "style": {"fontSize": "120%", "listStyleType": "circle"}, "data": {"content": "example-sentence-a"}, "content": [{"tag": "ruby", "content": ["彼", {"tag": "rt", "content": "かの"}]}, {"tag": "ruby", "content": ["女", {"tag": "rt", "content": "じょ"}]}, "は", {"tag": "ruby", "content": ["子", {"tag": "rt", "content": "こ"}]}, {"tag": "ruby", "content": ["供", {"tag": "rt", "content": "ども"}]}, "たちに", {"tag": "span", "style": {"textDecorationLine": "underline"}, "content": [{"tag": "ruby", "content": ["面", {"tag": "rt", "content": "おも"}]}, {"tag": "ruby", "content": ["白", {"tag": "rt", "content": "しろ"}]}, "い"]}, {"tag": "ruby", "content": ["話", {"tag": "rt", "content": "はなし"}]}, "をしてあげた。"]}, {"tag": "li", "lang": "en", "style": {"fontSize": "70%", "listStyleType": "none"}, "data": {"content": "example-sentence-b"}, "content": "She told her children an amusing story."}]}]}, {"tag": "li", "style": {"listStyleType": "\"③ \""}, "data": {"sense-number": "3"}, "content": [{"tag": "ul", "data": {"content": "glossary"}, "content": [{"tag": "li", "content": "enjoyable"}, {"tag": "li", "content": "fun"}, {"tag": "li", "content": "entertaining"}, {"tag": "li", "content": "pleasant"}, {"tag": "li", "content": "agreeable"}]}, {"tag": "ul", "style": {"marginBottom": 0.5}, "content": [{"tag": "li", "lang": "ja", "style": {"fontSize": "120%", "listStyleType": "circle"}, "data": {"content": "example-sentence-a"}, "content": ["この", {"tag": "ruby", "content": ["本", {"tag": "rt", "content": "ほん"}]}, "は", {"tag": "span", "style": {"textDecorationLine": "underline"}, "content": [{"tag": "ruby", "content": ["面", {"tag": "rt", "content": "おも"}]}, {"tag": "ruby", "content": ["白", {"tag": "rt", "content": "しろ"}]}, "い"]}, {"tag": "ruby", "content": ["読", {"tag": "rt", "content": "よ"}]}, "み", {"tag": "ruby", "content": ["物", {"tag": "rt", "content": "もの"}]}, "です。"]}, {"tag": "li", "lang": "en", "style": {"fontSize": "70%", "listStyleType": "none"}, "data": {"content": "example-sentence-b"}, "content": "This book makes pleasant reading."}, {"tag": "li", "lang": "ja", "style": {"fontSize": "120%", "listStyleType": "circle"}, "data": {"content": "example-sentence-a"}, "content": [{"tag": "ruby", "content": ["野", {"tag": "rt", "content": "や"}]}, {"tag": "ruby", "content": ["鳥", {"tag": "rt", "content": "ちょう"}]}, "を", {"tag": "ruby", "content": ["観", {"tag": "rt", "content": "かん"}]}, {"tag": "ruby", "content": ["察", {"tag": "rt", "content": "さつ"}]}, "するのはとても", {"tag": "span", "style": {"textDecorationLine": "underline"}, "content": [{"tag": "ruby", "content": ["面", {"tag": "rt", "content": "おも"}]}, {"tag": "ruby", "content": ["白", {"tag": "rt", "content": "しろ"}]}, "い"]}, "。"]}, {"tag": "li", "lang": "en", "style": {"fontSize": "70%", "listStyleType": "none"}, "data": {"content": "example-sentence-b"}, "content": "Watching wild birds is great fun."}]}]}, {"tag": "li", "style": {"listStyleType": "\"④ \""}, "data": {"sense-number": "4"}, "content": [{"tag": "ul", "data": {"content": "glossary"}, "content": [{"tag": "li", "content": "good"}, {"tag": "li", "content": "satisfactory"}, {"tag": "li", "content": "favourable"}, {"tag": "li", "content": "desirable"}, {"tag": "li", "content": "encouraging"}]}, {"tag": "ul", "style": {"marginBottom": 0.5}, "content": {"tag": "li", "style": {"listStyleType": "\"📝 \"", "marginTop": 0.5}, "data": {"content": "sense-note"}, "content": "usu. in the negative"}}]}]}]}}], 1533580, ""]]
28 changes: 28 additions & 0 deletions tests/files/testentries/7_expected
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
① • interesting
• fascinating
• intriguing
• enthralling
◦ 新聞には何も面白いことは載っていない。
There is nothing interesting in the newspaper.
② • amusing
• funny
• comical
◦ これは私が読んだ中で一番面白い本です。
This is the funniest book in my reading.
◦ 彼女は子供たちに面白い話をしてあげた。
She told her children an amusing story.
③ • enjoyable
• fun
• entertaining
• pleasant
• agreeable
◦ この本は面白い読み物です。
This book makes pleasant reading.
◦ 野鳥を観察するのはとても面白い。
Watching wild birds is great fun.
④ • good
• satisfactory
• favourable
• desirable
• encouraging
📝 usu. in the negative

0 comments on commit 326d98d

Please sign in to comment.