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 {
9090 /// Adds a subcase in which the module is updated with `src`, which
9191 /// should contain invalid input, and ensures that compilation fails
9292 /// 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`.
9494 pub fn addError(self: *Case, src: [:0]const u8, errors: []const []const u8) void {
9595 var array = self.updates.allocator.alloc(ErrorMsg, errors.len) catch unreachable;
9696 for (errors) |e, i| {
......@@ -267,7 +267,7 @@ pub const TestContext = struct {
267267
268268 /// Adds a test case that ensures that the Zig given in `src` fails to
269269 /// 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`.
271271 pub fn compileError(
272272 ctx: *TestContext,
273273 name: []const u8,
......@@ -280,7 +280,7 @@ pub const TestContext = struct {
280280
281281 /// Adds a test case that ensures that the ZIR given in `src` fails to
282282 /// 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`.
284284 pub fn compileErrorZIR(
285285 ctx: *TestContext,
286286 name: []const u8,
......@@ -325,7 +325,7 @@ pub const TestContext = struct {
325325
326326 /// Adds a test case that first ensures that the Zig given in `src` fails
327327 /// 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
329329 /// asserts that fixing the source (updating with `fixed_src`) isn't broken
330330 /// by incremental compilation.
331331 pub fn incrementalFailure(
......@@ -343,7 +343,7 @@ pub const TestContext = struct {
343343
344344 /// Adds a test case that first ensures that the ZIR given in `src` fails
345345 /// 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
347347 /// asserts that fixing the source (updating with `fixed_src`) isn't broken
348348 /// by incremental compilation.
349349 pub fn incrementalFailureZIR(