diff --git a/vlib/toml/tests/toml_attrs_test.v b/vlib/toml/tests/toml_attrs_test.v index f0fa6a775e1074..772f9e7476c68e 100644 --- a/vlib/toml/tests/toml_attrs_test.v +++ b/vlib/toml/tests/toml_attrs_test.v @@ -1,15 +1,15 @@ -import toml - -struct TestStruct { - foo int - bar bool @[skip] - baz string = 'def' @[toml: barbaz] -} - -fn test_toml_attr_encode() { - assert toml.encode(TestStruct{}) == 'foo = 0\nbarbaz = "def"' -} - -fn test_toml_attr_decode() { - assert toml.decode[TestStruct]('foo = 0\nbarbaz = "def"')! == TestStruct{} -} +import toml + +struct TestStruct { + foo int + bar bool @[skip] + baz string = 'def' @[toml: barbaz] +} + +fn test_toml_attr_encode() { + assert toml.encode(TestStruct{}) == 'foo = 0\nbarbaz = "def"' +} + +fn test_toml_attr_decode() { + assert toml.decode[TestStruct]('foo = 0\nbarbaz = "def"')! == TestStruct{} +}