Update to TOML 1.1.0#302
Merged
Merged
Conversation
6cd9aaf to
90840dd
Compare
Owner
|
Hi, @nikitabobko, thanks for contributing! Would you mind running |
90840dd to
df48610
Compare
Contributor
Author
|
Hi @dduan, I've run |
Contributor
Author
|
Oooh, it appears that the code generated by I will take a look at it tomorrow (probably, I will include the generated code to the exception list for the formatter) |
Owner
|
No worries. I'm also enabling more checks for PRs at #303. If you rebase later, it should get the CI checks going. Appreciate your help! |
6ef51b5 to
b410207
Compare
This commit is a result of `./Scripts/format.sh`
The file is called Scripts/generate-tests.py not Scripts/sync_compliance_tests.py
This prefactoring will be important in later commits when I add support for optional seconds (TOML 1.1.0) cause it won't longer be constant 8 but either 8 or 5 (depending on wheter the seconds are presented or not) The magic constant 8 comes from scanTime where in case of success (not nil value is returned) the total increment to the index variable equals to 8
None of the tests are failing after the bump
The following tests are failing now:
Test "[inline-table] newline" recorded an issue at TOMLComplianceSupport.swift:34:25: Issue recorded
(Line 3) Syntax error: newline not allowed in inline table.
Test "[spec-1.1.0] common 29" recorded an issue at TOMLComplianceSupport.swift:34:25: Issue recorded
(Line 1) Syntax error: extra chars after value.
Test "[string] hex escape" recorded an issue at TOMLComplianceSupport.swift:34:25: Issue recorded
Illegal escape character 'x'.
Test "[spec-1.1.0] common 12" recorded an issue at TOMLComplianceSupport.swift:34:25: Issue recorded
Illegal escape character 'x'.
Test "[spec-1.1.0] common 47" recorded an issue at TOMLComplianceSupport.swift:34:25: Issue recorded
(Line 4) Syntax error: newline not allowed in inline table.
Test "[string] escape esc" recorded an issue at TOMLComplianceSupport.swift:34:25: Issue recorded
Illegal escape character 'e'.
Test "[datetime] no seconds" recorded an issue at TOMLComplianceSupport.swift:34:25: Issue recorded
(Line 2) Syntax error: extra chars after value.
Test "[spec-1.1.0] common 34" recorded an issue at TOMLComplianceSupport.swift:34:25: Issue recorded
(Line 1) Syntax error: extra chars after value.
Test "[spec-1.1.0] common 31" recorded an issue at TOMLComplianceSupport.swift:34:25: Issue recorded
(Line 1) Syntax error: extra chars after value.
Test "[inline-table] newline" failed after 0.014 seconds with 1 issue.
Test "[spec-1.1.0] common 29" failed after 0.016 seconds with 1 issue.
Test "[string] hex escape" failed after 0.017 seconds with 1 issue.
Test "[spec-1.1.0] common 12" failed after 0.017 seconds with 1 issue.
Test "[inline-table] newline comment" recorded an issue at TOMLComplianceSupport.swift:34:25: Issue recorded
(Line 4) Syntax error: newline not allowed in inline table.
Test "[spec-1.1.0] common 47" failed after 0.019 seconds with 1 issue.
Test "[string] escape esc" failed after 0.019 seconds with 1 issue.
Test "[datetime] no seconds" failed after 0.021 seconds with 1 issue.
Test "[spec-1.1.0] common 34" failed after 0.025 seconds with 1 issue.
Test "[spec-1.1.0] common 31" failed after 0.026 seconds with 1 issue.
Test "[inline-table] newline comment" failed after 0.031 seconds with 1 issue.
Suite TOMLValidationTests failed after 0.041 seconds with 10 issues.
Test run with 743 tests in 8 suites failed after 0.550 seconds with 10 issues.
I will fix the tests in the next couple of commits
b410207 to
2a1961d
Compare
Contributor
Author
|
I've updated the code generator to match the formatting of |
toml-lang/toml#904 This commit fixes the following tests: - [inline-table] newline - [inline-table] newline comment
toml-lang/toml#894 This commit fixes the following tests: - [spec-1.1.0] common 34 - [spec-1.1.0] common 29 - [spec-1.1.0] common 31 - [datetime] no seconds
toml-lang/toml#790 This commit fixes the following test: - [string] escape esc
toml-lang/toml#796 This commit fixes all the remaining TOML 1.1.0 tests, namely: - [string] hex escape - [spec-1.1.0] common 12
2a1961d to
5c793ed
Compare
Owner
|
Looks great! Thanks, @nikitabobko ! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TOML 1.1.0 just got recently released https://github.com/toml-lang/toml/releases/tag/1.1.0. This PR updates the testData and the implementation to abide the new spec.
Feel free to do whatever you want to with the PR. If I don't satisfy your code standard, feel free to close the PR.
git log of this PR: