-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
schema: moran | ||
source_dir: .. | ||
deploy: | ||
# 出廠設置 | ||
default: | ||
tests: | ||
- send: l | ||
assert: cand[1].text == "了" and cand[1].comment == "⚡️" | ||
- send: le | ||
assert: cand[1].text == "樂" and cand[1].comment == "⚡️" | ||
- send: lem | ||
assert: cand[1].text == "樂" and cand[1].comment == "⚡️" | ||
- send: lemd | ||
assert: cand[1].text == "楽" and cand[1].comment == "" | ||
- send: hello # 英語混輸 | ||
assert: cand[1].text == "hello" | ||
- send: jis | ||
assert: cand[1].text == "級" and cand[1].comment == "⚡️" | ||
- send: jisjo # 出簡讓全 | ||
assert: cand[1].text == "紀" | ||
|
||
# 顏文字,測試 has_emoji 規則 | ||
emoji: | ||
options: | ||
emoji: true | ||
tests: | ||
- send: hk | ||
assert: cand[2].text == "👌" | ||
- send: o | ||
assert: cand[2].text == "😯" | ||
- send: ou | ||
assert: cand[2].text == "€" | ||
- send: mzgo | ||
assert: cand[2].text == "🇺🇸" | ||
- send: vsgo | ||
assert: cand[2].text == "🇨🇳" | ||
|
||
# 自定義簡快碼 | ||
quick_code_indicator_empty: | ||
patch: | ||
moran/quick_code_indicator: "" | ||
tests: | ||
- send: l | ||
assert: cand[1].text == "了" and cand[1].comment == "" | ||
quick_code_indicator_other: | ||
patch: | ||
moran/quick_code_indicator: "💥" | ||
tests: | ||
- send: l | ||
assert: cand[1].text == "了" and cand[1].comment == "💥" | ||
- send: le | ||
assert: cand[1].text == "樂" and cand[1].comment == "💥" | ||
- send: lem | ||
assert: cand[1].text == "樂" and cand[1].comment == "💥" | ||
- send: lemd | ||
assert: cand[1].text == "楽" and cand[1].comment == "" | ||
|
||
# 詞輔 | ||
word_filter: | ||
patch: | ||
moran/enable_word_filter: true | ||
tests: | ||
- send: lmjx | ||
assert: cand[1].text == "鏈接" | ||
- send: lmjxz | ||
assert: cand[1].text == "連接" | ||
|
||
# pin | ||
pin: | ||
options: | ||
emoji: false | ||
tests: | ||
- send: 'lmjx' | ||
assert: cand[1].text == '鏈接' and cand[2].text == '連接' | ||
- send: 'lmjx{Control+t}' # SIDE-EFFECT!! | ||
assert: cand[1].comment == "📌" | ||
- send: 'lmjx{Control+t}' | ||
assert: cand[1].comment == "" | ||
- send: 'lmjx{Down}{Control+t}' | ||
assert: cand[1].text == '連接' and cand[1].comment == "📌" | ||
- send: 'lmjx' | ||
assert: cand[1].text == '連接' and cand[1].comment == "📌" |