| author | |
| committer | |
| log | efab3b1e6dfe2fb1115de2202d3b034b82142815 |
| tree | 51b7cc9e33cebfdeed36e3d758b0fd23382ce784 |
| parent | 24cca2a55e9fce5bd13bbda731cfa632885bcd3f |
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) | ... | @@ -406,7 +406,7 @@ pub fn expectStringEndsWith(actual: []const u8, expected_ends_with: []const u8) |
| 406 | return; | 406 | return; |
| 407 | 407 | ||
| 408 | const shortened_actual = if (actual.len >= expected_ends_with.len) | 408 | 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)..] |
| 410 | else | 410 | else |
| 411 | actual; | 411 | actual; |
| 412 | 412 |