Skip to content

Commit 8569ac3

Browse files
committed
Redundant test
1 parent aaf382b commit 8569ac3

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

src/Index.zig

-25
Original file line numberDiff line numberDiff line change
@@ -540,31 +540,6 @@ pub fn getMaxCommitId(self: *Self) u64 {
540540
return @max(self.file_segments.getMaxCommitId(), self.memory_segments.getMaxCommitId());
541541
}
542542

543-
test "Index" {
544-
var tmpDir = std.testing.tmpDir(.{});
545-
defer tmpDir.cleanup();
546-
547-
var index = try Self.init(std.testing.allocator, tmpDir.dir, .{ .create = true });
548-
defer index.deinit();
549-
550-
try index.open();
551-
552-
try index.update(&[_]Change{
553-
.{
554-
.insert = .{
555-
.id = 1,
556-
.hashes = &[_]u32{ 100, 101, 102 },
557-
},
558-
},
559-
});
560-
561-
var results = try index.search(&[_]u32{ 100, 101, 102 }, std.testing.allocator, .{});
562-
defer results.deinit();
563-
564-
try std.testing.expectEqual(1, results.count());
565-
try std.testing.expectEqualDeep(SearchResult{ .id = 1, .score = 3, .version = 1 }, results.get(1));
566-
}
567-
568543
test {
569544
_ = @import("index_tests.zig");
570545
}

0 commit comments

Comments
 (0)