std: fix BoundedArray test checking wrong condition (#12372)

This commit is contained in:
Ryotaro "Justin" Kimura 2022-08-08 23:13:35 +01:00 committed by GitHub
parent 1db99b08e2
commit 50b36e84fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));