diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-05-07 10:52:52 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-05-07 10:52:52 -0700 |
| commit | 01c46eef3a7e4fd5a96f364541c539746ae1ea3b (patch) | |
| tree | 447b4bf1086aae9a01844abcb9e55156d3007c26 /test | |
| parent | 6f0f357ee43fc02ad2dc1eb44ab127c0d741282c (diff) | |
| download | zig-01c46eef3a7e4fd5a96f364541c539746ae1ea3b.tar.gz zig-01c46eef3a7e4fd5a96f364541c539746ae1ea3b.zip | |
std: separate str and cstr
Diffstat (limited to 'test')
| -rw-r--r-- | test/self_hosted.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/self_hosted.zig b/test/self_hosted.zig index 705dadca3d..8c6c9112e4 100644 --- a/test/self_hosted.zig +++ b/test/self_hosted.zig @@ -1,6 +1,7 @@ const std = @import("std"); const assert = std.assert; const str = std.str; +const cstr = std.cstr; const other = @import("other.zig"); #attribute("test") @@ -1557,7 +1558,7 @@ fn c_string_concatenation() { const a = c"OK" ++ c" IT " ++ c"WORKED"; const b = c"OK IT WORKED"; - const len = str.len(b); + const len = cstr.len(b); const len_with_null = len + 1; {var i: i32 = 0; while (i < len_with_null; i += 1) { assert(a[i] == b[i]); |
