feat: Implemented basic db operation.

This commit is contained in:
2026-04-29 17:42:20 -04:00
parent e528652725
commit 6557139380
5 changed files with 254 additions and 78 deletions

View File

@@ -125,9 +125,13 @@ test "sample file can be encrypted" {
gpa,
.unlimited,
);
defer gpa.free(want);
const contents = try tmp.dir.readFileAlloc(io, output_path, gpa, .unlimited);
defer gpa.free(contents);
try std.testing.expectEqualSlices(u8, want, got);
try std.testing.expectEqual(want.len, got.len);
// FIXME: Test that decrypted file contents match
// try std.testing.expectEqualSlices(u8, "Hello, World!\n", decrypted_contents);
}