mirror of
https://codeberg.org/kaasboteram/zig-iterating.git
synced 2025-12-15 09:43:14 +01:00
Remove "slices" unit test
This commit is contained in:
parent
1d7ef3ab9d
commit
1a6e4b6bba
1 changed files with 0 additions and 10 deletions
10
src/root.zig
10
src/root.zig
|
|
@ -349,13 +349,3 @@ pub fn SliceIterConst(comptime T: type) type {
|
|||
}
|
||||
};
|
||||
}
|
||||
|
||||
test "slices" {
|
||||
const slice: []const i32 = &[_]i32{ -2, -1, 0, 1, 2 };
|
||||
var it = Iter(i32).fromSlice(slice).enumerate();
|
||||
|
||||
while (it.next()) |pair| {
|
||||
const i, const val = pair;
|
||||
try std.testing.expectEqual(slice[i], val.*);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue