Sha256: 7b9f1522b1a71bcee50f739ca905d20bcaad7f1df7ba97757cdda27ad67280e7

Contents?: true

Size: 1.5 KB

Versions: 15

Compression:

Stored size: 1.5 KB

Contents

# Test file for TOML
# Only this one tries to emulate a TOML file written by a user of the kind of parser writers probably hate
# This part you'll really hate

[the]
test_string = "You'll hate me after this - #"          # " Annoying, isn't it?

    [the.hard]
    test_array = [ "] ", " # "]      # ] There you go, parse this!
    test_array2 = [ "Test #11 ]proved that", "Experiment #9 was a success" ]
    # You didn't think it'd as easy as chucking out the last #, did you?
    another_test_string = " Same thing, but with a string #"
    harder_test_string = " And when \"'s are in the string, along with # \""   # "and comments are there too"
    # Things will get harder
    
        [the.hard."bit#"]
        "what?" = "You don't think some user won't do that?"
        multi_line_array = [
            "]",
            # ] Oh yes I did
            ]

[parent.child1]
key = 'value'

[[parent.child2]]
key2 = 'value'

[[parent.child2]]
key3 = 'value'

[[a.b]]
c = 3

# Each of the following keygroups/key value pairs should produce an error. Uncomment to them to test

#[error]   if you didn't catch this, your parser is broken
#string = "Anything other than tabs, spaces and newline after a keygroup or key value pair has ended should produce an error unless it is a comment"   like this
#array = [
#         "This might most likely happen in multiline arrays",
#         Like here,
#         "or here,
#         and here"
#         ]     End of array comment, forgot the #
#number = 3.14  pi <--again forgot the #         

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
toml-rb-0.3.15 test/hard_example.toml
toml-rb-0.3.14 test/hard_example.toml
toml-rb-0.3.13 test/hard_example.toml
toml-rb-0.3.12 test/hard_example.toml
toml-rb-0.3.11 test/hard_example.toml
toml-rb-0.3.10 test/hard_example.toml
toml-rb-0.3.9 test/hard_example.toml
toml-rb-0.3.8 test/hard_example.toml
toml-rb-0.3.7 test/hard_example.toml
toml-rb-0.3.6 test/hard_example.toml
toml-rb-0.3.5 test/hard_example.toml
toml-rb-0.3.4 test/hard_example.toml
toml-rb-0.3.3 test/hard_example.toml
toml-rb-0.3.0 test/hard_example.toml
toml-rb-0.2.1 test/hard_example.toml