mirror of
https://github.com/sbrow/envr.git
synced 2026-06-27 18:48:33 -04:00
feat: Implemented basic db operation.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user