Skip to content

Commit 12729c4

Browse files
committed
test: add 「でも」テストケース
refs #37
1 parent 97b4b2e commit 12729c4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/no-doubled-joshi-test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ tester.run("no-double-joshi", rule, {
88
"既存のコードの利用", // "の" の例外
99
"オブジェクトを返す関数を公開した", // "を" の例外
1010
"私は彼の鼻は好きだ",
11+
"明日手紙を書いたり勉強したりします。",
1112
// 、 と ,をtokenを距離 + 1 として考える
1213
"これがiPhone、これがAndroidです。",
1314
"これがiPhone,これがAndroidです。",
@@ -38,6 +39,12 @@ tester.run("no-double-joshi", rule, {
3839
"ターミナルで「test」**と**入力する**と**、画面に表示されます。",
3940
// 格助詞の種類が異なる
4041
// "プロパティを削除しようとするとエラーが発生します。",
42+
// 「でも」と「も」は並列としても扱うケースがある
43+
// TODO: オプション化する
44+
{
45+
text: "短距離でも長距離でも早いです。",
46+
options: { allow: ["でも"] },
47+
},
4148
{
4249
text: "太字も強調も同じように無視されます。",
4350
options: { allow: ["も"] },

0 commit comments

Comments
 (0)