Skip to content

Commit

Permalink
run ./v fmt -w vlib/toml/
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed May 26, 2024
1 parent 4181a33 commit f571fa0
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions vlib/toml/tests/toml_attrs_test.v
Original file line number Diff line number Diff line change
@@ -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{}
}

0 comments on commit f571fa0

Please sign in to comment.