| ... | @@ -920,6 +920,7 @@ test "mem.count" { | ... | @@ -920,6 +920,7 @@ test "mem.count" { |
| 920 | testing.expect(count(u8, "foo bar", "o bar") == 1); | 920 | testing.expect(count(u8, "foo bar", "o bar") == 1); |
| 921 | testing.expect(count(u8, "foofoofoo", "foo") == 3); | 921 | testing.expect(count(u8, "foofoofoo", "foo") == 3); |
| 922 | testing.expect(count(u8, "fffffff", "ff") == 3); | 922 | testing.expect(count(u8, "fffffff", "ff") == 3); |
| | 923 | testing.expect(count(u8, "owowowu", "owowu") == 1); |
| 923 | } | 924 | } |
| 924 | | 925 | |
| 925 | /// Reads an integer from memory with size equal to bytes.len. | 926 | /// Reads an integer from memory with size equal to bytes.len. |