| ... | @@ -90,7 +90,7 @@ pub const TestContext = struct { | ... | @@ -90,7 +90,7 @@ pub const TestContext = struct { |
| 90 | /// Adds a subcase in which the module is updated with `src`, which | 90 | /// Adds a subcase in which the module is updated with `src`, which |
| 91 | /// should contain invalid input, and ensures that compilation fails | 91 | /// should contain invalid input, and ensures that compilation fails |
| 92 | /// for the expected reasons, given in sequential order in `errors` in | 92 | /// for the expected reasons, given in sequential order in `errors` in |
| 93 | /// the form `:error: line:column: message`. | 93 | /// the form `:line:column: error: message`. |
| 94 | pub fn addError(self: *Case, src: [:0]const u8, errors: []const []const u8) void { | 94 | pub fn addError(self: *Case, src: [:0]const u8, errors: []const []const u8) void { |
| 95 | var array = self.updates.allocator.alloc(ErrorMsg, errors.len) catch unreachable; | 95 | var array = self.updates.allocator.alloc(ErrorMsg, errors.len) catch unreachable; |
| 96 | for (errors) |e, i| { | 96 | for (errors) |e, i| { |
| ... | @@ -267,7 +267,7 @@ pub const TestContext = struct { | ... | @@ -267,7 +267,7 @@ pub const TestContext = struct { |
| 267 | | 267 | |
| 268 | /// Adds a test case that ensures that the Zig given in `src` fails to | 268 | /// Adds a test case that ensures that the Zig given in `src` fails to |
| 269 | /// compile for the expected reasons, given in sequential order in | 269 | /// compile for the expected reasons, given in sequential order in |
| 270 | /// `expected_errors` in the form `:error: line:column: message`. | 270 | /// `expected_errors` in the form `:line:column: error: message`. |
| 271 | pub fn compileError( | 271 | pub fn compileError( |
| 272 | ctx: *TestContext, | 272 | ctx: *TestContext, |
| 273 | name: []const u8, | 273 | name: []const u8, |
| ... | @@ -280,7 +280,7 @@ pub const TestContext = struct { | ... | @@ -280,7 +280,7 @@ pub const TestContext = struct { |
| 280 | | 280 | |
| 281 | /// Adds a test case that ensures that the ZIR given in `src` fails to | 281 | /// Adds a test case that ensures that the ZIR given in `src` fails to |
| 282 | /// compile for the expected reasons, given in sequential order in | 282 | /// compile for the expected reasons, given in sequential order in |
| 283 | /// `expected_errors` in the form `:error: line:column: message`. | 283 | /// `expected_errors` in the form `:line:column: error: message`. |
| 284 | pub fn compileErrorZIR( | 284 | pub fn compileErrorZIR( |
| 285 | ctx: *TestContext, | 285 | ctx: *TestContext, |
| 286 | name: []const u8, | 286 | name: []const u8, |
| ... | @@ -325,7 +325,7 @@ pub const TestContext = struct { | ... | @@ -325,7 +325,7 @@ pub const TestContext = struct { |
| 325 | | 325 | |
| 326 | /// Adds a test case that first ensures that the Zig given in `src` fails | 326 | /// Adds a test case that first ensures that the Zig given in `src` fails |
| 327 | /// to compile for the reasons given in sequential order in | 327 | /// to compile for the reasons given in sequential order in |
| 328 | /// `expected_errors` in the form `:error: line:column: message`, then | 328 | /// `expected_errors` in the form `:line:column: error: message`, then |
| 329 | /// asserts that fixing the source (updating with `fixed_src`) isn't broken | 329 | /// asserts that fixing the source (updating with `fixed_src`) isn't broken |
| 330 | /// by incremental compilation. | 330 | /// by incremental compilation. |
| 331 | pub fn incrementalFailure( | 331 | pub fn incrementalFailure( |
| ... | @@ -343,7 +343,7 @@ pub const TestContext = struct { | ... | @@ -343,7 +343,7 @@ pub const TestContext = struct { |
| 343 | | 343 | |
| 344 | /// Adds a test case that first ensures that the ZIR given in `src` fails | 344 | /// Adds a test case that first ensures that the ZIR given in `src` fails |
| 345 | /// to compile for the reasons given in sequential order in | 345 | /// to compile for the reasons given in sequential order in |
| 346 | /// `expected_errors` in the form `:error: line:column: message`, then | 346 | /// `expected_errors` in the form `:line:column: error: message`, then |
| 347 | /// asserts that fixing the source (updating with `fixed_src`) isn't broken | 347 | /// asserts that fixing the source (updating with `fixed_src`) isn't broken |
| 348 | /// by incremental compilation. | 348 | /// by incremental compilation. |
| 349 | pub fn incrementalFailureZIR( | 349 | pub fn incrementalFailureZIR( |