Commit 50b36e84fa

Ryotaro "Justin" Kimura <1560508+ryoppippi@users.noreply.github.com>
2022-08-09 00:13:35
std: fix BoundedArray test checking wrong condition (#12372)
1 parent 1db99b0
Changed files (1)
lib/std/bounded_array.zig
@@ -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));