Skip to content

Commit

Permalink
test: add 「でも」テストケース
Browse files Browse the repository at this point in the history
refs #37
  • Loading branch information
azu committed Oct 31, 2021
1 parent 97b4b2e commit 12729c4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/no-doubled-joshi-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ tester.run("no-double-joshi", rule, {
"既存のコードの利用", // "の" の例外
"オブジェクトを返す関数を公開した", // "を" の例外
"私は彼の鼻は好きだ",
"明日手紙を書いたり勉強したりします。",
// 、 と ,をtokenを距離 + 1 として考える
"これがiPhone、これがAndroidです。",
"これがiPhone,これがAndroidです。",
Expand Down Expand Up @@ -38,6 +39,12 @@ tester.run("no-double-joshi", rule, {
"ターミナルで「test」**と**入力する**と**、画面に表示されます。",
// 格助詞の種類が異なる
// "プロパティを削除しようとするとエラーが発生します。",
// 「でも」と「も」は並列としても扱うケースがある
// TODO: オプション化する
{
text: "短距離でも長距離でも早いです。",
options: { allow: ["でも"] },
},
{
text: "太字も強調も同じように無視されます。",
options: { allow: ["も"] },
Expand Down

0 comments on commit 12729c4

Please sign in to comment.