Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ RUN apt-get update \
# Install required build and runtime dependencies, cannot use `--no-install-recommends`
&& apt-get install -y jq wget unzip libmpfr6 libwebkit2gtk-4.1-0 libpcre3 \
# Fetch pre-built nightly release and install it
&& wget --quiet --output-document arturo.zip https://github.com/arturo-lang/nightly/releases/download/2025-07-05/arturo-nightly.2025-07-04-amd64-linux-full.zip \
&& wget --quiet --output-document arturo.zip https://github.com/arturo-lang/nightly/releases/download/2025-04-01/arturo-nightly.2025-03-31-amd64-linux-full.zip \
&& unzip -d /usr/local/bin arturo.zip arturo \
&& rm arturo.zip \
# Install unitt test framework
Expand Down
2 changes: 1 addition & 1 deletion tests/all-fail/expected_results.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": 1,
"status": "fail",
"message": "\n===== tests/test-all-fail.art =====\n\nDescription: Leap \n \n \u001b[0;33m❌ - assert that a year not divisible by 4 is a common year\u001b[0m\n_repr\nthis\\_condition\n \u001b[0;31m❌: false\u001b[0m\n\n \u001b[0;33m❌ - assert that a year divisible by 2 and not divisible by 4 is a common year\u001b[0m\n_repr\nthis\\_condition\n \u001b[0;31m❌: false\u001b[0m\n\n \u001b[0;33m❌ - assert that a year divisible by 4 and not divisible by 100 is a leap year\u001b[0m\n_repr\nthis\\_condition\n \u001b[0;31m❌: false\u001b[0m\n\n \u001b[0;33m❌ - assert that a year divisible by 4 and 5 is still a leap year\u001b[0m\n_repr\nthis\\_condition\n \u001b[0;31m❌: false\u001b[0m\n\n \u001b[0;33m❌ - assert that a year divisible by 100 and not divisible by 400 is a common year\u001b[0m\n_repr\nthis\\_condition\n \u001b[0;31m❌: false\u001b[0m\n\n \u001b[0;33m❌ - assert that a year divisible by 100 but not divisible by 3 is still not a leap year\u001b[0m\n_repr\nthis\\_condition\n \u001b[0;31m❌: false\u001b[0m\n\n \u001b[0;33m❌ - assert that a year divisible by 400 is a leap year\u001b[0m\n_repr\nthis\\_condition\n \u001b[0;31m❌: false\u001b[0m\n\n \u001b[0;33m❌ - assert that a year divisible by 400 but not by 125 is still a leap year\u001b[0m\n_repr\nthis\\_condition\n \u001b[0;31m❌: false\u001b[0m\n\n \u001b[0;33m❌ - assert that a year divisible by 200 and not divisible by 400 is a common year\u001b[0m\n_repr\nthis\\_condition\n \u001b[0;31m❌: false\u001b[0m\n\n\n\n===== Statistics =====\n\n ⏏️ TOTAL: 9 assertions\n✅ PASSED: 0 assertions\n⏩ SKIPPED: 0 assertions\n❌ FAILED: 9 assertions\n\n===== ========== =====\n\n\n\u001b[0;31m══╡ \u001b[1;31mProgram Error\u001b[0;31m ╞═════════════════════════════════════════════════ <script> ══\u001b[0m\n\n Some tests have been failed!"
"message": "\n===== tests/test-all-fail.art =====\n\nDescription: Leap \n \n \u001b[0;33m❌ - assert that a year not divisible by 4 is a common year\u001b[0m\n \u001b[0;31m❌: false = true\u001b[0m\n\n \u001b[0;33m❌ - assert that a year divisible by 2 and not divisible by 4 is a common year\u001b[0m\n \u001b[0;31m❌: false = true\u001b[0m\n\n \u001b[0;33m❌ - assert that a year divisible by 4 and not divisible by 100 is a leap year\u001b[0m\n \u001b[0;31m❌: true = false\u001b[0m\n\n \u001b[0;33m❌ - assert that a year divisible by 4 and 5 is still a leap year\u001b[0m\n \u001b[0;31m❌: true = false\u001b[0m\n\n \u001b[0;33m❌ - assert that a year divisible by 100 and not divisible by 400 is a common year\u001b[0m\n \u001b[0;31m❌: false = true\u001b[0m\n\n \u001b[0;33m❌ - assert that a year divisible by 100 but not divisible by 3 is still not a leap year\u001b[0m\n \u001b[0;31m❌: false = true\u001b[0m\n\n \u001b[0;33m❌ - assert that a year divisible by 400 is a leap year\u001b[0m\n \u001b[0;31m❌: true = false\u001b[0m\n\n \u001b[0;33m❌ - assert that a year divisible by 400 but not by 125 is still a leap year\u001b[0m\n \u001b[0;31m❌: true = false\u001b[0m\n\n \u001b[0;33m❌ - assert that a year divisible by 200 and not divisible by 400 is a common year\u001b[0m\n \u001b[0;31m❌: false = true\u001b[0m\n\n\n\n===== Statistics =====\n\n ⏏️ TOTAL: 9 assertions\n✅ PASSED: 0 assertions\n⏩ SKIPPED: 0 assertions\n❌ FAILED: 9 assertions\n\n===== ========== =====\n\n\n\u001b[0;31m══╡ \u001b[1;31mProgram Error\u001b[0;31m ╞═════════════════════════════════════════════════ <script> ══\u001b[0m\n\n Some tests have been failed!"
}
2 changes: 1 addition & 1 deletion tests/panic-fails/expected_results.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": 1,
"status": "fail",
"message": "\n===== tests/test-panic-fails.art =====\n\nDescription: Panic fails a test suite \n \n \u001b[0;33m✅ - assert that alwaysTrue passes because implemented\u001b[0m\n_repr\nthis\\_condition\n \u001b[0;32m✅: true\u001b[0m\n\n\n\u001b[0;31m══╡ \u001b[1;31mType Error\u001b[0;31m ╞════════════════════════════════════════════════════ <script> ══\u001b[0m\n\n Erroneous type found\u001b[0m\n\n Cannot call function:\n \u001b[1mpanic\u001b[0m .code:\u001b[0;31m ◄\u001b[0m\n \n Wrong attribute value: \n \u001b[1;32mtrue\u001b[0;90m :logical\u001b[0m\n \n Expected: \n :integer\n\n \u001b[0;90m┃ \u001b[1;90mFile: \u001b[0;90m/root/.arturo/packages/cache/unitt/2.0.1/src/internal/runner.art\n \u001b[0;90m┃ \u001b[1;90mLine: \u001b[0;90m32\n \u001b[0;90m┃ \u001b[0m\n \u001b[0;90m┃ 30 ║ ]\u001b[0m\n \u001b[0;90m┃ 31 ║ \u001b[0m\n \u001b[0;90m┃ \u001b[1;90m 32\u001b[0;90m ║\u001b[0;31m►\u001b[0;90m \u001b[1;90m fail: method [][\u001b[0;90m\u001b[0m\n \u001b[0;90m┃ 33 ║ panic.code: 1 \"Some tests have been failed!\"\u001b[0m\n \u001b[0;90m┃ 34 ║ ]\u001b[0m"
"message": "\n===== tests/test-panic-fails.art =====\n\nDescription: Panic fails a test suite \n \n \u001b[0;33m✅ - assert that alwaysTrue passes because implemented\u001b[0m\n \u001b[0;32m✅: true\u001b[0m\n\n\n\u001b[0;31m══╡ \u001b[1;31mType Error\u001b[0;31m ╞════════════════════════════════════════════════════ <script> ══\u001b[0m\n\n Erroneous type found\u001b[0m\n\n Cannot call function:\n \u001b[1mpanic\u001b[0m .code:\u001b[0;31m ◄\u001b[0m\n \n Wrong attribute value: \n \u001b[1;32mtrue\u001b[0;90m :logical\u001b[0m\n \n Expected: \n :integer\n\n \u001b[0;90m┃ \u001b[1;90mFile: \u001b[0;90m/root/.arturo/packages/cache/unitt/2.0.1/src/internal/runner.art\n \u001b[0;90m┃ \u001b[1;90mLine: \u001b[0;90m32\n \u001b[0;90m┃ \u001b[0m\n \u001b[0;90m┃ 30 ║ ]\u001b[0m\n \u001b[0;90m┃ 31 ║ \u001b[0m\n \u001b[0;90m┃ \u001b[1;90m 32\u001b[0;90m ║\u001b[0;31m►\u001b[0;90m \u001b[1;90m fail: method [][\u001b[0;90m\u001b[0m\n \u001b[0;90m┃ 33 ║ panic.code: 1 \"Some tests have been failed!\"\u001b[0m\n \u001b[0;90m┃ 34 ║ ]\u001b[0m"
}
2 changes: 1 addition & 1 deletion tests/partial-fail/expected_results.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": 1,
"status": "fail",
"message": "\n===== tests/test-partial-fail.art =====\n\nDescription: Leap \n \n \u001b[0;33m❌ - assert that a year not divisible by 4 is a common year\u001b[0m\n_repr\nthis\\_condition\n \u001b[0;31m❌: false\u001b[0m\n\n \u001b[0;33m❌ - assert that a year divisible by 2 and not divisible by 4 is a common year\u001b[0m\n_repr\nthis\\_condition\n \u001b[0;31m❌: false\u001b[0m\n\n \u001b[0;33m❌ - assert that a year divisible by 4 and not divisible by 100 is a leap year\u001b[0m\n_repr\nthis\\_condition\n \u001b[0;31m❌: false\u001b[0m\n\n \u001b[0;33m✅ - assert that a year divisible by 4 and 5 is still a leap year\u001b[0m\n_repr\nthis\\_condition\n \u001b[0;32m✅: true\u001b[0m\n\n \u001b[0;33m✅ - assert that a year divisible by 100 and not divisible by 400 is a common year\u001b[0m\n_repr\nthis\\_condition\n \u001b[0;32m✅: true\u001b[0m\n\n \u001b[0;33m✅ - assert that a year divisible by 100 but not divisible by 3 is still not a leap year\u001b[0m\n_repr\nthis\\_condition\n \u001b[0;32m✅: true\u001b[0m\n\n \u001b[0;33m✅ - assert that a year divisible by 400 is a leap year\u001b[0m\n_repr\nthis\\_condition\n \u001b[0;32m✅: true\u001b[0m\n\n \u001b[0;33m✅ - assert that a year divisible by 400 but not by 125 is still a leap year\u001b[0m\n_repr\nthis\\_condition\n \u001b[0;32m✅: true\u001b[0m\n\n \u001b[0;33m✅ - assert that a year divisible by 200 and not divisible by 400 is a common year\u001b[0m\n_repr\nthis\\_condition\n \u001b[0;32m✅: true\u001b[0m\n\n\n\n===== Statistics =====\n\n ⏏️ TOTAL: 9 assertions\n✅ PASSED: 6 assertions\n⏩ SKIPPED: 0 assertions\n❌ FAILED: 3 assertions\n\n===== ========== =====\n\n\n\u001b[0;31m══╡ \u001b[1;31mProgram Error\u001b[0;31m ╞═════════════════════════════════════════════════ <script> ══\u001b[0m\n\n Some tests have been failed!"
"message": "\n===== tests/test-partial-fail.art =====\n\nDescription: Leap \n \n \u001b[0;33m❌ - assert that a year not divisible by 4 is a common year\u001b[0m\n \u001b[0;31m❌: false = true\u001b[0m\n\n \u001b[0;33m❌ - assert that a year divisible by 2 and not divisible by 4 is a common year\u001b[0m\n \u001b[0;31m❌: false = true\u001b[0m\n\n \u001b[0;33m❌ - assert that a year divisible by 4 and not divisible by 100 is a leap year\u001b[0m\n \u001b[0;31m❌: true = false\u001b[0m\n\n \u001b[0;33m✅ - assert that a year divisible by 4 and 5 is still a leap year\u001b[0m\n \u001b[0;32m✅: true = true\u001b[0m\n\n \u001b[0;33m✅ - assert that a year divisible by 100 and not divisible by 400 is a common year\u001b[0m\n \u001b[0;32m✅: false = false\u001b[0m\n\n \u001b[0;33m✅ - assert that a year divisible by 100 but not divisible by 3 is still not a leap year\u001b[0m\n \u001b[0;32m✅: false = false\u001b[0m\n\n \u001b[0;33m✅ - assert that a year divisible by 400 is a leap year\u001b[0m\n \u001b[0;32m✅: true = true\u001b[0m\n\n \u001b[0;33m✅ - assert that a year divisible by 400 but not by 125 is still a leap year\u001b[0m\n \u001b[0;32m✅: true = true\u001b[0m\n\n \u001b[0;33m✅ - assert that a year divisible by 200 and not divisible by 400 is a common year\u001b[0m\n \u001b[0;32m✅: false = false\u001b[0m\n\n\n\n===== Statistics =====\n\n ⏏️ TOTAL: 9 assertions\n✅ PASSED: 6 assertions\n⏩ SKIPPED: 0 assertions\n❌ FAILED: 3 assertions\n\n===== ========== =====\n\n\n\u001b[0;31m══╡ \u001b[1;31mProgram Error\u001b[0;31m ╞═════════════════════════════════════════════════ <script> ══\u001b[0m\n\n Some tests have been failed!"
}