test/toml_examples.rb in toml-rb-0.2.0 vs test/toml_examples.rb in toml-rb-0.2.1

- old
+ new

@@ -107,11 +107,10 @@ end def self.example { 'title' => 'TOML Example', - 'owner' => { 'name' => 'Tom Preston-Werner', 'organization' => 'GitHub', 'bio' => "GitHub Cofounder & CEO\nLikes tater tots and beer.", 'dob' => Time.utc(1979, 05, 27, 07, 32, 00) @@ -121,22 +120,20 @@ 'server' => '192.168.1.1', 'ports' => [8001, 8001, 8002], 'connection_max' => 5000, 'enabled' => true }, - 'servers' => { 'alpha' => { 'ip' => '10.0.0.1', 'dc' => 'eqdc10' }, 'beta' => { 'ip' => '10.0.0.2', 'dc' => 'eqdc10' } }, - 'clients' => { 'data' => [%w(gamma delta), [1, 2]], 'hosts' => %w(alpha omega) } } @@ -155,17 +152,20 @@ 'what?' => "You don't think some user won't do that?", 'multi_line_array' => [']'] } } }, - "nested" => [ - { - "table" => [ - { - "array" => [{}] - } - ] - } - ] + 'parent' => { + 'child1' => { 'key' => 'value' }, + 'child2' => [ + { 'key2' => 'value' }, + { 'key3' => 'value' } + ] + }, + 'a' => { + 'b' => [ + { 'c' => 3 } + ] + } } end end