From cd44a8659fdbeb36e9ccc633f8059e9ab368304e Mon Sep 17 00:00:00 2001 From: zihang Date: Mon, 25 Mar 2024 10:19:48 +0800 Subject: [PATCH] test: ci --- .github/workflows/mdlint.yaml | 2 +- course2/lec2_script.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/mdlint.yaml b/.github/workflows/mdlint.yaml index fabe681..7ce3712 100644 --- a/.github/workflows/mdlint.yaml +++ b/.github/workflows/mdlint.yaml @@ -21,7 +21,7 @@ jobs: run: /bin/bash -c "$(curl -fsSL https://cli.moonbitlang.com/ubuntu_x86_64_moon_setup.sh)" - name: Get changed files - id: changed-fiels + id: changed-files uses: tj-actions/changed-files@v43 - name: Run mdlint diff --git a/course2/lec2_script.md b/course2/lec2_script.md index 88e9d35..7c81e8d 100644 --- a/course2/lec2_script.md +++ b/course2/lec2_script.md @@ -61,11 +61,11 @@ fn num_water_bottles(num_bottles: Int, num_exchange: Int) -> Int { consume(num_bottles, 0) } -// 程序入口 -fn init { +// 程序测试 +test { // 命令 - assert(num_water_bottles(9, 3) == 13) - assert(num_water_bottles(15, 4) == 19) + @assertion.assert_eq(num_water_bottles(9, 3), 13)? + @assertion.assert_eq(num_water_bottles(15, 4), 19)? } ```