Skip to content

Commit 40ded1f

Browse files
test: ci
1 parent 11a071a commit 40ded1f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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)