Skip to content

Fix toml-test issues #7

Description

@roxblnfk

I tested using the toml-test utility and got the following result:

┌──────────────────────────┬──────────────────────────────────────────────────────────┐
│         Category         │                            Fails                         │
├──────────────────────────┼──────────────────────────────────────────────────────────┤
│ invalid/control (26)     │ No validation of control characters in strings/comments  │
├──────────────────────────┼──────────────────────────────────────────────────────────┤
│ invalid/integer (25)     │ Doesn't reject invalid integers (leading zeros, etc.)    │
├──────────────────────────┼──────────────────────────────────────────────────────────┤
│ invalid/table (22)       │ Doesn't reject invalid tables ([[table] ], extend, etc.) │
├──────────────────────────┼──────────────────────────────────────────────────────────┤
│ invalid/float (21)       │ Doesn't reject invalid floats (double dot, exp issues,   │
│                          │ etc.)                                                    │
├──────────────────────────┼──────────────────────────────────────────────────────────┤
│ valid/key (15)           │ Numeric bare keys (1 = true) not parsed                  │
├──────────────────────────┼──────────────────────────────────────────────────────────┤
│ invalid/datetime (16)    │ Doesn't validate dates (month-over, feb-30, etc.)        │
├──────────────────────────┼──────────────────────────────────────────────────────────┤
│ invalid/inline-table     │ Doesn't reject invalid inline tables                     │
│ (14)                     │                                                          │
├──────────────────────────┼──────────────────────────────────────────────────────────┤
│ valid/table (11)         │ Table definition/scoping issues                          │
├──────────────────────────┼──────────────────────────────────────────────────────────┤
│ invalid/string (9)       │ Doesn't reject invalid strings                           │
├──────────────────────────┼──────────────────────────────────────────────────────────┤
│ valid/datetime (5)       │ Lowercase z, format normalization                        │
├──────────────────────────┼──────────────────────────────────────────────────────────┤
│ valid/empty (5)          │ [] instead of {} in decoder output                       │
├──────────────────────────┼──────────────────────────────────────────────────────────┤
│ valid/float (3)          │ nan/inf parsed as float tokens instead of bare keys      │
├──────────────────────────┼──────────────────────────────────────────────────────────┤
│ valid/comment (5)        │ Comments without EOL                                     │
└──────────────────────────┴──────────────────────────────────────────────────────────┘

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions