authorgravatar for stephen.lumenta@gmail.comStephen Lumenta <stephen.lumenta@gmail.com> 2021-10-29 00:00:50+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-12-21 17:33:04-08:00
logefab3b1e6dfe2fb1115de2202d3b034b82142815
tree51b7cc9e33cebfdeed36e3d758b0fd23382ce784
parent24cca2a55e9fce5bd13bbda731cfa632885bcd3f

fix expectStringEndsWith error output.

before it started outputting the actual starting, not ending characters.

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

lib/std/testing.zig+1-1
......@@ -406,7 +406,7 @@ pub fn expectStringEndsWith(actual: []const u8, expected_ends_with: []const u8)
406406 return;
407407
408408 const shortened_actual = if (actual.len >= expected_ends_with.len)
409 actual[0..expected_ends_with.len]
409 actual[(actual.len - expected_ends_with.len)..]
410410 else
411411 actual;
412412