diff --git a/Dockerfile b/Dockerfile index 381fa6d..2f0e968 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ ARG REPO=alpine ARG IMAGE=3.19.1@sha256:6457d53fb065d6f250e1504b9bc42d5b6c65941d57532c072d929dd0628977d0 FROM ${REPO}:${IMAGE} AS builder -ARG VERSION=0.11.0 +ARG VERSION=0.12.0 ARG RELEASE=zig-linux-x86_64-${VERSION} # We can't reliably pin the package versions on Alpine, so we ignore the linter warning. diff --git a/tests/example-all-fail/expected_results.json b/tests/example-all-fail/expected_results.json index da9dfff..9d7690c 100644 --- a/tests/example-all-fail/expected_results.json +++ b/tests/example-all-fail/expected_results.json @@ -1,5 +1,5 @@ { "version": 1, "status": "fail", - "message": "1/9 test.year not divisible by 4 in common year... FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:515:14: 0x2246af in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:7:5: 0x2247d6 in test.year not divisible by 4 in common year (test)\n try testing.expect(!leap.leap(2015));\n ^\n2/9 test.year divisible by 2, not divisible by 4 in common year... FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:515:14: 0x2246af in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:11:5: 0x224896 in test.year divisible by 2, not divisible by 4 in common year (test)\n try testing.expect(!leap.leap(1970));\n ^\n3/9 test.year divisible by 4, not divisible by 100 in leap year... FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:515:14: 0x2246af in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:15:5: 0x2248e4 in test.year divisible by 4, not divisible by 100 in leap year (test)\n try testing.expect(leap.leap(1996));\n ^\n4/9 test.year divisible by 4 and 5 is still a leap year... FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:515:14: 0x2246af in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:19:5: 0x224934 in test.year divisible by 4 and 5 is still a leap year (test)\n try testing.expect(leap.leap(1960));\n ^\n5/9 test.year divisible by 100, not divisible by 400 in common year... FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:515:14: 0x2246af in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:23:5: 0x224986 in test.year divisible by 100, not divisible by 400 in common year (test)\n try testing.expect(!leap.leap(2100));\n ^\n6/9 test.year divisible by 100 but not by 3 is still not a leap year... FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:515:14: 0x2246af in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:27:5: 0x2249d6 in test.year divisible by 100 but not by 3 is still not a leap year (test)\n try testing.expect(!leap.leap(1900));\n ^\n7/9 test.year divisible by 400 is leap year... FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:515:14: 0x2246af in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:31:5: 0x224a24 in test.year divisible by 400 is leap year (test)\n try testing.expect(leap.leap(2000));\n ^\n8/9 test.year divisible by 400 but not by 125 is still a leap year... FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:515:14: 0x2246af in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:35:5: 0x224a74 in test.year divisible by 400 but not by 125 is still a leap year (test)\n try testing.expect(leap.leap(2400));\n ^\n9/9 test.year divisible by 200, not divisible by 400 in common year... FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:515:14: 0x2246af in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:39:5: 0x224ac6 in test.year divisible by 200, not divisible by 400 in common year (test)\n try testing.expect(!leap.leap(1800));\n ^\n0 passed; 0 skipped; 9 failed." + "message": "1/9 test_example_all_fail.test.year not divisible by 4 in common year... FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:540:14: f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:7:5: 6 in test.year not divisible by 4 in common year (test)\n try testing.expect(!leap.leap(2015));\n ^\n2/9 test_example_all_fail.test.year divisible by 2, not divisible by 4 in common year... FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:540:14: f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:11:5: 6 in test.year divisible by 2, not divisible by 4 in common year (test)\n try testing.expect(!leap.leap(1970));\n ^\n3/9 test_example_all_fail.test.year divisible by 4, not divisible by 100 in leap year... FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:540:14: f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:15:5: 4 in test.year divisible by 4, not divisible by 100 in leap year (test)\n try testing.expect(leap.leap(1996));\n ^\n4/9 test_example_all_fail.test.year divisible by 4 and 5 is still a leap year... FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:540:14: f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:19:5: 4 in test.year divisible by 4 and 5 is still a leap year (test)\n try testing.expect(leap.leap(1960));\n ^\n5/9 test_example_all_fail.test.year divisible by 100, not divisible by 400 in common year... FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:540:14: f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:23:5: 6 in test.year divisible by 100, not divisible by 400 in common year (test)\n try testing.expect(!leap.leap(2100));\n ^\n6/9 test_example_all_fail.test.year divisible by 100 but not by 3 is still not a leap year... FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:540:14: f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:27:5: 6 in test.year divisible by 100 but not by 3 is still not a leap year (test)\n try testing.expect(!leap.leap(1900));\n ^\n7/9 test_example_all_fail.test.year divisible by 400 is leap year... FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:540:14: f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:31:5: 4 in test.year divisible by 400 is leap year (test)\n try testing.expect(leap.leap(2000));\n ^\n8/9 test_example_all_fail.test.year divisible by 400 but not by 125 is still a leap year... FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:540:14: f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:35:5: 4 in test.year divisible by 400 but not by 125 is still a leap year (test)\n try testing.expect(leap.leap(2400));\n ^\n9/9 test_example_all_fail.test.year divisible by 200, not divisible by 400 in common year... FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:540:14: f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:39:5: 6 in test.year divisible by 200, not divisible by 400 in common year (test)\n try testing.expect(!leap.leap(1800));\n ^\n0 passed; 0 skipped; 9 failed." } diff --git a/tests/example-empty-file/expected_results.json b/tests/example-empty-file/expected_results.json index 785a446..91d4db6 100644 --- a/tests/example-empty-file/expected_results.json +++ b/tests/example-empty-file/expected_results.json @@ -1,5 +1,5 @@ { "version": 1, "status": "error", - "message": "test_example_empty_file.zig:7:29: error: root struct of file 'example_empty_file' has no member named 'leap'\ntest_example_empty_file.zig:11:29: error: root struct of file 'example_empty_file' has no member named 'leap'\ntest_example_empty_file.zig:15:28: error: root struct of file 'example_empty_file' has no member named 'leap'\ntest_example_empty_file.zig:19:28: error: root struct of file 'example_empty_file' has no member named 'leap'\ntest_example_empty_file.zig:23:29: error: root struct of file 'example_empty_file' has no member named 'leap'\ntest_example_empty_file.zig:27:29: error: root struct of file 'example_empty_file' has no member named 'leap'\ntest_example_empty_file.zig:31:28: error: root struct of file 'example_empty_file' has no member named 'leap'\ntest_example_empty_file.zig:35:28: error: root struct of file 'example_empty_file' has no member named 'leap'\ntest_example_empty_file.zig:39:29: error: root struct of file 'example_empty_file' has no member named 'leap'" + "message": "test_example_empty_file.zig:7:29: error: root struct of file 'example_empty_file' has no member named 'leap'\nexample_empty_file.zig:1:1: note: struct declared here\ntest_example_empty_file.zig:11:29: error: root struct of file 'example_empty_file' has no member named 'leap'\nexample_empty_file.zig:1:1: note: struct declared here\ntest_example_empty_file.zig:15:28: error: root struct of file 'example_empty_file' has no member named 'leap'\nexample_empty_file.zig:1:1: note: struct declared here\ntest_example_empty_file.zig:19:28: error: root struct of file 'example_empty_file' has no member named 'leap'\nexample_empty_file.zig:1:1: note: struct declared here\ntest_example_empty_file.zig:23:29: error: root struct of file 'example_empty_file' has no member named 'leap'\nexample_empty_file.zig:1:1: note: struct declared here\ntest_example_empty_file.zig:27:29: error: root struct of file 'example_empty_file' has no member named 'leap'\nexample_empty_file.zig:1:1: note: struct declared here\ntest_example_empty_file.zig:31:28: error: root struct of file 'example_empty_file' has no member named 'leap'\nexample_empty_file.zig:1:1: note: struct declared here\ntest_example_empty_file.zig:35:28: error: root struct of file 'example_empty_file' has no member named 'leap'\nexample_empty_file.zig:1:1: note: struct declared here\ntest_example_empty_file.zig:39:29: error: root struct of file 'example_empty_file' has no member named 'leap'\nexample_empty_file.zig:1:1: note: struct declared here" } diff --git a/tests/example-partial-fail/expected_results.json b/tests/example-partial-fail/expected_results.json index 31c33a9..11c07f4 100644 --- a/tests/example-partial-fail/expected_results.json +++ b/tests/example-partial-fail/expected_results.json @@ -1,5 +1,5 @@ { "version": 1, "status": "fail", - "message": "1/9 test.year not divisible by 4 in common year... OK\n2/9 test.year divisible by 2, not divisible by 4 in common year... OK\n3/9 test.year divisible by 4, not divisible by 100 in leap year... OK\n4/9 test.year divisible by 4 and 5 is still a leap year... OK\n5/9 test.year divisible by 100, not divisible by 400 in common year... FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:515:14: 0x2246af in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-partial-fail/test_example_partial_fail.zig:23:5: 0x224986 in test.year divisible by 100, not divisible by 400 in common year (test)\n try testing.expect(!leap.leap(2100));\n ^\n6/9 test.year divisible by 100 but not by 3 is still not a leap year... FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:515:14: 0x2246af in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-partial-fail/test_example_partial_fail.zig:27:5: 0x2249d6 in test.year divisible by 100 but not by 3 is still not a leap year (test)\n try testing.expect(!leap.leap(1900));\n ^\n7/9 test.year divisible by 400 is leap year... OK\n8/9 test.year divisible by 400 but not by 125 is still a leap year... OK\n9/9 test.year divisible by 200, not divisible by 400 in common year... FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:515:14: 0x2246af in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-partial-fail/test_example_partial_fail.zig:39:5: 0x224ac6 in test.year divisible by 200, not divisible by 400 in common year (test)\n try testing.expect(!leap.leap(1800));\n ^\n6 passed; 0 skipped; 3 failed." + "message": "1/9 test_example_partial_fail.test.year not divisible by 4 in common year... OK\n2/9 test_example_partial_fail.test.year divisible by 2, not divisible by 4 in common year... OK\n3/9 test_example_partial_fail.test.year divisible by 4, not divisible by 100 in leap year... OK\n4/9 test_example_partial_fail.test.year divisible by 4 and 5 is still a leap year... OK\n5/9 test_example_partial_fail.test.year divisible by 100, not divisible by 400 in common year... FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:540:14: f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-partial-fail/test_example_partial_fail.zig:23:5: 6 in test.year divisible by 100, not divisible by 400 in common year (test)\n try testing.expect(!leap.leap(2100));\n ^\n6/9 test_example_partial_fail.test.year divisible by 100 but not by 3 is still not a leap year... FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:540:14: f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-partial-fail/test_example_partial_fail.zig:27:5: 6 in test.year divisible by 100 but not by 3 is still not a leap year (test)\n try testing.expect(!leap.leap(1900));\n ^\n7/9 test_example_partial_fail.test.year divisible by 400 is leap year... OK\n8/9 test_example_partial_fail.test.year divisible by 400 but not by 125 is still a leap year... OK\n9/9 test_example_partial_fail.test.year divisible by 200, not divisible by 400 in common year... FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:540:14: f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-partial-fail/test_example_partial_fail.zig:39:5: 6 in test.year divisible by 200, not divisible by 400 in common year (test)\n try testing.expect(!leap.leap(1800));\n ^\n6 passed; 0 skipped; 3 failed." }