Skip to content

Commit cd44a86

Browse files
test: ci
1 parent 11a071a commit cd44a86

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/mdlint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
run: /bin/bash -c "$(curl -fsSL https://cli.moonbitlang.com/ubuntu_x86_64_moon_setup.sh)"
2222

2323
- name: Get changed files
24-
id: changed-fiels
24+
id: changed-files
2525
uses: tj-actions/changed-files@v43
2626

2727
- name: Run mdlint

course2/lec2_script.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ fn num_water_bottles(num_bottles: Int, num_exchange: Int) -> Int {
6161
consume(num_bottles, 0)
6262
}
6363
64-
// 程序入口
65-
fn init {
64+
// 程序测试
65+
test {
6666
// 命令
67-
assert(num_water_bottles(9, 3) == 13)
68-
assert(num_water_bottles(15, 4) == 19)
67+
@assertion.assert_eq(num_water_bottles(9, 3), 13)?
68+
@assertion.assert_eq(num_water_bottles(15, 4), 19)?
6969
}
7070
```
7171

0 commit comments

Comments
 (0)