fix: bit rotten json in cbor.extract_cbor test case

This commit is contained in:
CJ van den Berg 2025-07-15 16:43:31 +02:00
parent 3461e8d808
commit 6eccce0b98
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -4,6 +4,7 @@ const cbor_mod = @import("cbor");
const expect = std.testing.expect; const expect = std.testing.expect;
const expectEqual = std.testing.expectEqual; const expectEqual = std.testing.expectEqual;
const expectEqualDeep = std.testing.expectEqualDeep; const expectEqualDeep = std.testing.expectEqualDeep;
const expectEqualStrings = std.testing.expectEqualStrings;
const expectError = std.testing.expectError; const expectError = std.testing.expectError;
const fmt = cbor_mod.fmt; const fmt = cbor_mod.fmt;
@ -519,5 +520,5 @@ test "cbor.extract_cbor f64" {
const json2 = try toJsonAlloc(std.testing.allocator, sub); const json2 = try toJsonAlloc(std.testing.allocator, sub);
defer std.testing.allocator.free(json2); defer std.testing.allocator.free(json2);
try expectEqualDeep("[9.689138531684875e-1]", json2); try expectEqualStrings("[0.9689138531684875]", json2);
} }