9 lines
212 B
Plaintext
9 lines
212 B
Plaintext
const std = #import("std");
|
|
const expect = std.testing.expect;
|
|
|
|
const main = fn() *!void {
|
|
const foo: [&:0]const u8 = "Foo";
|
|
const foo_string = std.c_slice(foo);
|
|
try expect(foo_string.length == 3);
|
|
}
|