Formatting

This commit is contained in:
Vivianne 2023-07-17 03:17:22 -07:00
parent ab0c90bfb6
commit 901cfaea48

View file

@ -66,7 +66,6 @@ const SyrupSerializer = struct {
test "serialize bool" {
var arr = std.ArrayList(u8).init(std.testing.allocator);
defer arr.deinit();
var s = (SyrupSerializer{ .writer = arr.writer() }).serializer();
try getty.serialize(null, true, s);
@ -79,7 +78,6 @@ test "serialize bool" {
test "serialize ints" {
var arr = std.ArrayList(u8).init(std.testing.allocator);
defer arr.deinit();
var s = (SyrupSerializer{ .writer = arr.writer() }).serializer();
try getty.serialize(null, 42, s);
@ -92,7 +90,6 @@ test "serialize ints" {
test "serialize floats" {
var arr = std.ArrayList(u8).init(std.testing.allocator);
defer arr.deinit();
var s = (SyrupSerializer{ .writer = arr.writer() }).serializer();
try getty.serialize(null, @as(f64, 42.42), s);
@ -103,7 +100,6 @@ test "serialize floats" {
test "serialize strs" {
var arr = std.ArrayList(u8).init(std.testing.allocator);
defer arr.deinit();
var s = (SyrupSerializer{ .writer = arr.writer() }).serializer();
try getty.serialize(null, "hello", s);
@ -121,7 +117,6 @@ test "serialize enum, aka symbol" {
var arr = std.ArrayList(u8).init(std.testing.allocator);
defer arr.deinit();
var s = (SyrupSerializer{ .writer = arr.writer() }).serializer();
try getty.serialize(null, Testing.cool, s);
@ -138,7 +133,6 @@ test "serialize mixed" {
var arr = std.ArrayList(u8).init(std.testing.allocator);
defer arr.deinit();
var s = (SyrupSerializer{ .writer = arr.writer() }).serializer();
try getty.serialize(null, 42, s);