We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c98aac3 commit 30435a0Copy full SHA for 30435a0
build.zig
@@ -319,9 +319,17 @@ fn addTests(
319
.check = .{ .expect_stderr_match = "error: compiler '0.7.0' is not installed\n" },
320
});
321
322
+ tests.addWithClean(.{
323
+ .name = "test-invalid-version",
324
+ .argv = &.{"this-version-is-not-valid"},
325
+ .checks = &.{
326
+ .{ .expect_stderr_match = "error: invalid zig version 'this-version-is-not-valid', unable to create a download URL for it\n" },
327
+ },
328
+ });
329
+
330
const non_existent_version = "0.0.99";
331
tests.addWithClean(.{
- .name = "test-bad-version",
332
+ .name = "test-valid-but-nonexistent-version",
333
.argv = &.{non_existent_version},
334
.checks = &.{
335
.{ .expect_stderr_match = "error: could not download '" },
0 commit comments