Files
bun.sh/src/unit_test.zig
pfg 83760fc446 Sort imports in all files (#21119)
Co-authored-by: taylor.fish <contact@taylor.fish>
2025-07-21 13:26:47 -07:00

18 lines
419 B
Zig

test {
_ = @import("./shell/braces.zig");
_ = @import("./bun.js/node/assert/myers_diff.zig");
}
test "basic string usage" {
var s = bun.String.cloneUTF8("hi");
defer s.deref();
try t.expect(s.tag != .Dead and s.tag != .Empty);
try t.expectEqual(s.length(), 2);
try t.expectEqualStrings(s.asUTF8().?, "hi");
}
const bun = @import("bun");
const std = @import("std");
const t = std.testing;