1 USING: multiline toml tools.test ;
5 { "title" "TOML Example" }
6 { "hosts" { "alpha" "omega" } }
10 { "name" "Tom Preston-Werner" }
11 { "organization" "GitHub" }
14 "GitHub Cofounder & CEO\nLikes tater tots and beer."
16 { "dob" "1979-05-27T07:32:00Z" }
22 { "server" "192.168.1.1" }
23 { "ports" { 8001 8001 8002 } }
24 { "connection_max" 5000 }
51 { "data" { { "gamma" "delta" } { 1 2 } } }
72 # This is a TOML document. Boom.
74 title = "TOML Example"
77 name = "Tom Preston-Werner"
78 organization = "GitHub"
79 bio = "GitHub Cofounder & CEO\nLikes tater tots and beer."
80 dob = 1979-05-27T07:32:00Z # First class dates? Why not?
83 server = "192.168.1.1"
84 ports = [ 8001, 8001, 8002 ]
90 # You can indent as you please. Tabs or spaces. TOML don't care.
98 country = "中国" # This should be parsed as UTF-8
101 data = [ ["gamma", "delta"], [1, 2] ] # just an update to make sure parsers support it
103 # Line breaks are OK when inside arrays
126 { "temp_targets" H{ { "case" 72.0 } } } }
131 temp_targets = { case = 72.0 }" toml>