Compare commits
2 Commits
c8992fec99
...
1997c38e97
Author | SHA1 | Date |
---|---|---|
kayomn | 1997c38e97 | |
kayomn | a471fd4663 |
|
@ -135,7 +135,7 @@ pub fn Spliterator(comptime Element: type) type {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
test "Spliteration" {
|
test "Spliterating text" {
|
||||||
const testing = std.testing;
|
const testing = std.testing;
|
||||||
|
|
||||||
// Single-character delimiter.
|
// Single-character delimiter.
|
||||||
|
|
|
@ -207,8 +207,8 @@ test "Hashed table manipulation with string context" {
|
||||||
|
|
||||||
const foo = @as(u32, 69);
|
const foo = @as(u32, 69);
|
||||||
|
|
||||||
testing.expectEqual(table.remove("foo"), null);
|
try testing.expectEqual(table.remove("foo"), null);
|
||||||
try table.insert("foo", foo);
|
try table.insert("foo", foo);
|
||||||
testing.expectEqual(table.remove("foo"), foo);
|
try testing.expectEqual(table.remove("foo"), foo);
|
||||||
testing.expectEqual(table.remove("foo"), null);
|
try testing.expectEqual(table.remove("foo"), null);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue