authorgravatar for noam@pixelhero.devNoam Preil <noam@pixelhero.dev> 2020-06-26 06:52:29-04:00
committergravatar for noam@pixelhero.devNoam Preil <noam@pixelhero.dev> 2020-06-26 06:52:29-04:00
log52787f2c9b8157f348a34f19a22025b78f95b873
tree41dec660c5082800e82d49ac21807bb9ff4a32b6
parent6d536168b004a56e0cd0748dca8f0e7f0822fdce
signature Commit is signed but in an unrecognized format.

Fix a dumb


1 files changed, 5 insertions(+), 5 deletions(-)

src-self-hosted/test.zig+5-5
...@@ -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`, which90 /// Adds a subcase in which the module is updated with `src`, which
91 /// should contain invalid input, and ensures that compilation fails91 /// should contain invalid input, and ensures that compilation fails
92 /// for the expected reasons, given in sequential order in `errors` in92 /// 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 {
267267
268 /// Adds a test case that ensures that the Zig given in `src` fails to268 /// Adds a test case that ensures that the Zig given in `src` fails to
269 /// compile for the expected reasons, given in sequential order in269 /// 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 {
280280
281 /// Adds a test case that ensures that the ZIR given in `src` fails to281 /// Adds a test case that ensures that the ZIR given in `src` fails to
282 /// compile for the expected reasons, given in sequential order in282 /// 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 {
325325
326 /// Adds a test case that first ensures that the Zig given in `src` fails326 /// Adds a test case that first ensures that the Zig given in `src` fails
327 /// to compile for the reasons given in sequential order in327 /// to compile for the reasons given in sequential order in
328 /// `expected_errors` in the form `:error: line:column: message`, then328 /// `expected_errors` in the form `:line:column: error: message`, then
329 /// asserts that fixing the source (updating with `fixed_src`) isn't broken329 /// 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 {
343343
344 /// Adds a test case that first ensures that the ZIR given in `src` fails344 /// Adds a test case that first ensures that the ZIR given in `src` fails
345 /// to compile for the reasons given in sequential order in345 /// to compile for the reasons given in sequential order in
346 /// `expected_errors` in the form `:error: line:column: message`, then346 /// `expected_errors` in the form `:line:column: error: message`, then
347 /// asserts that fixing the source (updating with `fixed_src`) isn't broken347 /// 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(