Skip to content

Commit

Permalink
[toml] Re-formatting expected file
Browse files Browse the repository at this point in the history
  • Loading branch information
nbacquey committed Jan 29, 2024
1 parent 39990e3 commit af648a7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions topiary-cli/tests/samples/expected/toml.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2021"
[dependencies]
# For now we just load the tree-sitter language parsers statically.
# Eventually we will want to dynamically load them, like Helix does.
clap = { version = "3.2", features = [ "derive" ] }
clap = { version = "3.2", features = ["derive"] }
env_logger = "0.9"
itertools = "0.10"
log = "0.4"
Expand Down Expand Up @@ -43,7 +43,7 @@ dob = 1979-05-27T07:32:00-08:00 # First class dates

[database]
server = "192.168.1.1"
ports = [ 8001, 8001, 8002 ]
ports = [8001, 8001, 8002]
connection_max = 5000
enabled = true

Expand All @@ -59,7 +59,7 @@ ip = "10.0.0.2"
dc = "eqdc10"

[clients]
data = [ [ "gamma", "delta" ], [ 1, 2 ] ]
data = [["gamma", "delta"], [1, 2]]

# Line breaks are OK when inside arrays
hosts = [
Expand All @@ -70,20 +70,20 @@ hosts = [
]

["zip"]
cve = [ "CVE-2018-13410", "CVE-2018-1340" ] # garbage CVEs
cve = ["CVE-2018-13410", "CVE-2018-1340"] # garbage CVEs
comment = "this cve is only valid with attacker-controlled flags to zip"

["unzip"]
cve = [
"CVE-2018-13410",
"CVE-2018-1340",
]
cve = [ "CVE-2018-13410", "foo", "CVE-2018-1340" ]
cve = ["CVE-2018-13410", "foo", "CVE-2018-1340"]

comment = "this cve is only valid with attacker-controlled flags to zip"

["inline.comments"]
singleline_remove_trailing_comma = [ "foo", "bar", "baz" ]
singleline_remove_trailing_comma = ["foo", "bar", "baz"]
multiline_with_comments = [
"bar",
"blee",
Expand Down

0 comments on commit af648a7

Please sign in to comment.