Skip to content

Commit

Permalink
fix(README): 1-based index
Browse files Browse the repository at this point in the history
  • Loading branch information
ksqsf committed Dec 13, 2024
1 parent e69da7c commit cbec733
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,25 @@ source_dir: ".." # 方案所在目錄
deploy:
default: # 出場設置
tests:
- { send: "a", assert: cand[0].text == "啊" and cand[0].comment == "⚡" }
- { send: "bk", assert: cand[0].text == "報" and cand[0].comment == "⚡" }
- { send: "sxey;", assert: cand[0].text == "三心二意" }
- { send: "y;", assert: cand[0].text == "又" }
- { send: "a", assert: cand[1].text == "啊" and cand[1].comment == "⚡" }
- { send: "bk", assert: cand[1].text == "報" and cand[1].comment == "⚡" }
- { send: "sxey;", assert: cand[1].text == "三心二意" }
- { send: "y;", assert: cand[1].text == "又" }

emoji: # 繪文字
options:
emoji: true
tests:
- { send: "o", assert: cand[1].text == "😯" }
- { send: "ou", assert: cand[1].text == "€" }
- { send: "mzgo", assert: cand[1].text == "🇺🇸" }
- { send: "y;", assert: committed == "又" }
- { send: "o", assert: cand[2].text == "😯" }
- { send: "ou", assert: cand[2].text == "€" }
- { send: "mzgo", assert: cand[2].text == "🇺🇸" }
- { send: "y;", assert: commit == "又" }

quick_code_indicator: # 需要 patch 的情況
patch:
moran/quick_code_indicator: "🆒"
tests:
- { send: "a", assert: cand[0].comment == "🆒" }
- { send: "a", assert: cand[1].comment == "🆒" }
```
然後在該文件上運行 `mira` 程序即可:
Expand All @@ -42,6 +42,8 @@ deploy:
mira moran.test.yaml
```
如果方案存在多次部署,建議使用 `-C` / `--cache-dir` 參數緩存。
## 構建
依賴如下外部庫:
Expand Down

0 comments on commit cbec733

Please sign in to comment.