diff options
author | 2021-12-27 18:06:31 -0800 | |
---|---|---|
committer | 2021-12-27 18:06:31 -0800 | |
commit | 336a4b6ac2b4a8ee9a5c972f3d74bfff8eca13e6 (patch) | |
tree | f0d56c9f4ea3b318c9c9e635969de46b48d226d5 /src/resolver/resolver.zig | |
parent | c9c7521f4f6763dac8c5910ffcf2451c4c2f60d8 (diff) | |
download | bun-336a4b6ac2b4a8ee9a5c972f3d74bfff8eca13e6.tar.gz bun-336a4b6ac2b4a8ee9a5c972f3d74bfff8eca13e6.tar.zst bun-336a4b6ac2b4a8ee9a5c972f3d74bfff8eca13e6.zip |
Prepare to run unit tests & remove some dead code (#92)
* Remove some dead code
* :skull: code
* Fix the zig tests
* [JS Printer] Print integers faster & less scientific notation on decimals
* :skull: dead code
* skip
* Run all the unit tests
Diffstat (limited to '')
-rw-r--r-- | src/resolver/resolver.zig | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/resolver/resolver.zig b/src/resolver/resolver.zig index 3d7404a17..34dc09088 100644 --- a/src/resolver/resolver.zig +++ b/src/resolver/resolver.zig @@ -1359,7 +1359,7 @@ pub const Resolver = struct { null, ); // The file name needs to be persistent because it can have errors - // and if those errors need to print the filename + // and if those errors need to print the filename // then it will be undefined memory if we parse another tsconfig.json late const key_path = try Path.init(file).dupeAlloc(r.allocator); @@ -2715,18 +2715,6 @@ pub const Dirname = struct { } }; -test "murmur" { - var str = try std.heap.c_allocator.alloc(u8, "swiper@6.8.2swiper.cjs.js".len); - var str2 = try std.heap.c_allocator.alloc(u8, "swiper@6.8.2swiper.cjs.js".len); - std.mem.copy(u8, str, "swiper@6.8.2swiper.cjs.js"); - std.mem.copy(u8, str2, "swiper@6.8.2swiper.cjs.js"); - - try std.testing.expectEqual( - std.hash.murmur.Murmur3_32.hash(str), - std.hash.murmur.Murmur3_32.hash(str2), - ); -} - pub const RootPathPair = struct { base_path: string, package_json: *const PackageJSON, |