OSDN Git Service

work ti33950
[nvdajp/nvdajpmiscdep.git] / jptools / harness.py
index 4778612..69479dc 100644 (file)
@@ -82,6 +82,21 @@ tests = [
                'inpos':  [0,0,0,0,1,2,3,4,4,5,6,7,8,8,9,10,11,12,12,12,12,13,14,15,16,16,17,18,19,20,20,21,22],\r
                },\r
        {\r
+               'text': 'a\ta',\r
+               'input': 'a a',\r
+               'output': '⠰⠁ ⠰⠁',\r
+               },\r
+       {\r
+               'text': 'あ\tあ',\r
+               'input': 'ア ア',\r
+               'output': '⠁ ⠁',\r
+               },\r
+       {\r
+               'text': 'あ\u200bあ',\r
+               'input': 'ア ア',\r
+               'output': '⠁ ⠁',\r
+               },\r
+       {\r
                'text': 'ab 123 あab 123 あ',\r
                'input': 'ab 123 ア ab 123 ア',\r
                'output': '⠰⠁⠃ ⠼⠁⠃⠉ ⠁ ⠰⠁⠃ ⠼⠁⠃⠉ ⠁',\r
@@ -550,18 +565,52 @@ tests = [
                'comment': 'braille space should be changed to 0x20.',\r
                },\r
        {\r
+               'text': '⠁⠂⠃⠄⠅⠆⠇⠈⠉⠊⠋⠌⠍⠎⠏⠐⠑⠒⠓⠔⠕⠖⠗⠘⠙⠚⠛⠜⠝⠞⠟',\r
                'input': '⠁⠂⠃⠄⠅⠆⠇⠈⠉⠊⠋⠌⠍⠎⠏⠐⠑⠒⠓⠔⠕⠖⠗⠘⠙⠚⠛⠜⠝⠞⠟',\r
                'output': '⠁⠂⠃⠄⠅⠆⠇⠈⠉⠊⠋⠌⠍⠎⠏⠐⠑⠒⠓⠔⠕⠖⠗⠘⠙⠚⠛⠜⠝⠞⠟',\r
                'inpos1': [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30],\r
                'comment': 'braille code should not be changed.',\r
                },\r
        {\r
+               'text': '⠁⡀あ',\r
+               'input': '⠁⡀ア',\r
+               'output': '⠁⡀⠁',\r
+               'comment': 'braille code should not be changed.',\r
+               },\r
+       {\r
+               'text': '⠁⡀',\r
+               'input': '⠁⡀',\r
+               'output': '⠁⡀',\r
+               'comment': 'braille code should not be changed.',\r
+               },\r
+       {\r
+               'text': '⠁⡀ ',\r
+               'input': '⠁⡀ ',\r
+               'output': '⠁⡀ ',\r
+               'comment': 'braille code (with space) should not be changed.',\r
+               },\r
+       {\r
+               'text': '⠒⠓⠔⠕⠖⠗⠘⠙あ⠚⠛⠜⠝⠞⠟ ',\r
+               'input': '⠒⠓⠔⠕⠖⠗⠘⠙ア⠚⠛⠜⠝⠞⠟ ',\r
+               'comment': 'braille code (with space) should not be changed.',\r
+               },\r
+\r
+\r
+       {\r
+               'text': '⠠⠡⠢⠣⠤⠥⠦⠧⠨⠩⠪⠫⠬⠭⠮⠯⠰⠱⠲⠳⠴⠵⠶⠷⠸⠹⠺⠻⠼⠽⠾⠿',\r
                'input': '⠠⠡⠢⠣⠤⠥⠦⠧⠨⠩⠪⠫⠬⠭⠮⠯⠰⠱⠲⠳⠴⠵⠶⠷⠸⠹⠺⠻⠼⠽⠾⠿',\r
                'output': '⠠⠡⠢⠣⠤⠥⠦⠧⠨⠩⠪⠫⠬⠭⠮⠯⠰⠱⠲⠳⠴⠵⠶⠷⠸⠹⠺⠻⠼⠽⠾⠿',\r
                'inpos1': [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31],\r
                'comment': 'braille code should not be changed.',\r
                },\r
        {\r
+               'text': '⡀⡁⡂⡃⡄⡅⡆⡇⡈⡉⡊⡋⡌⡍⡎⡏⡐⡑⡒⡓⡔⡕⡖⡗⡘⡙⡚⡛⡜⡝⡞⡟',\r
+               'input': '⡀⡁⡂⡃⡄⡅⡆⡇⡈⡉⡊⡋⡌⡍⡎⡏⡐⡑⡒⡓⡔⡕⡖⡗⡘⡙⡚⡛⡜⡝⡞⡟',\r
+               'output': '⡀⡁⡂⡃⡄⡅⡆⡇⡈⡉⡊⡋⡌⡍⡎⡏⡐⡑⡒⡓⡔⡕⡖⡗⡘⡙⡚⡛⡜⡝⡞⡟',\r
+               'inpos1': [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31],\r
+               'comment': 'braille code should not be changed.',\r
+               },\r
+       {\r
                'text': '《本章のねらい》',\r
                'input': '《ホンショーノ ネライ》',\r
                'output': '⠐⠶⠮⠴⠈⠺⠒⠎ ⠏⠑⠃⠶⠂',\r
@@ -4509,6 +4558,9 @@ tests = [
        {   'text':'鈴木アナ', 'input':'スズキ アナ'},\r
        {   'text':'岡本プロ', 'input':'オカモト プロ'},\r
 \r
+       #{   'text':'びっくら放いた', 'input':'ビックラ コイタ'},\r
+       #{   'text':'五倍子', 'input':'ゴバイシ'},\r
+\r
        { 'note': '+ 踊り字 +' },\r
        # http://ja.wikipedia.org/wiki/%E8%B8%8A%E3%82%8A%E5%AD%97\r
 \r