mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 00:35:10 +00:00
std: fix BoundedArray test checking wrong condition (#12372)
This commit is contained in:
parent
1db99b08e2
commit
50b36e84fa
@ -275,7 +275,7 @@ test "BoundedArray" {
|
||||
try testing.expectEqualSlices(u8, &x, a.constSlice());
|
||||
|
||||
var a2 = a;
|
||||
try testing.expectEqualSlices(u8, a.constSlice(), a.constSlice());
|
||||
try testing.expectEqualSlices(u8, a.constSlice(), a2.constSlice());
|
||||
a2.set(0, 0);
|
||||
try testing.expect(a.get(0) != a2.get(0));
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user