Skip to content

Instantly share code, notes, and snippets.

@zerowidth
Last active December 14, 2015 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zerowidth/5083123 to your computer and use it in GitHub Desktop.
Save zerowidth/5083123 to your computer and use it in GitHub Desktop.
output of toml-test run for toml-parslet library
1.9.3-p385 macallan:~/Desktop/toml-test (master)? ▸ ./toml-test /Users/nathan/code/toml-parslet/script/toml-test.sh
Test: duplicate-keygroups (invalid)
Expected an error, but no error was reported.
-------------------------------------------------------------------------------
Test: duplicate-keys (invalid)
Expected an error, but no error was reported.
-------------------------------------------------------------------------------
Test: empty-implicit-keygroup (invalid)
Expected an error, but no error was reported.
-------------------------------------------------------------------------------
Test: key-no-whitespace (invalid)
Expected an error, but no error was reported.
-------------------------------------------------------------------------------
Test: array-empty (valid)
#<TOML::ParseError: unexpected input at line 1 column 1>
-------------------------------------------------------------------------------
Test: key-special-chars (valid)
#<TOML::ParseError: unexpected input at line 1 column 1>
-------------------------------------------------------------------------------
Test: string-escapes (valid)
Values for key 'backslash' don't match. Expected a value of 'This string has a \ backslash character.' but got 'This string has a \\ backslash character.'.
44 passed, 7 failed
@zerowidth
Copy link
Author

  1. duplicate-keygroups

    The behavior for duplicate key groups isn't clearly defined, especially since there are no values defined within. Need clarification.

  2. duplicate-keys

    Will fix. (Not mentioned explicitly in the spec tho)

  3. empty-implicit-keygroup

    Will fix.

  4. key-no-whitespace

    Per the spec, keys are non-whitespace characters, and there doesn't have to be whitespace between a key and the = character.

  5. array-empty

    Undefined in spec, will ask for clarification. Easy to fix tho.

  6. key-special-chars

    From the spec: "Keys start with the first non-whitespace character and end with the last non-whitespace character before the equals sign". This implies that keys cannot contain the = character.

  7. string-escapes

    Will fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment