Comments (8)
https://github.com/BurntSushi/toml-test has a new maintainer. It's been updated to TOML v1.0.0.
There's a simple command line tool used for testing the suite. I don't know jack about Rust, but I would love to see taplo provide a binary to work with the toml-test
cmd.
from taplo.
@jasikpark thank you a lot! I'll look into these, we have some tests based on those 0.4.0 tests (and some 0.5.0) and bug reports, but tests are never enough.
from taplo.
toml-test
can be used with taplo-cli
from the master branch (cargo install --git=https://github.com/tamasfe/taplo.git --features toml-test taplo-cli
and then toml-test taplo -- toml-test
).
Unfortunately it is not part of the CI yet, and the cli has to be specifically built with the feature enabled, but I will include it in the next release by default as it barely adds anything to the final binary.
The results after the first run are not great, not terrible:
toml-test [taplo toml-test]: using embedded tests: 240 passed, 73 failed
As far as I see the causes of the failed tests roughly fall into three categories:
- actual bugs
- the parser being too permissive
- wrong string escape sequences
The latter two are not all that relevant for IDE uses, but might be essential for people who use taplo to validate TOML files (e.g. in CI).
Additional test cases and reports are welcome, fixes are even more welcome!
from taplo.
https://github.com/bd82/toml-tools/tree/master/packages/prettier-plugin-toml might be useful - they use Burntsushi's TOML test suite I believe?
https://github.com/BurntSushi/toml-test
from taplo.
Oh lol that repo is in sync with TOML 0.4.0 nvm.
from taplo.
Probably not a bad idea for testing against 0.4.0 tho? IDK anything, I just really appreciate this project
from taplo.
https://github.com/iarna/toml-spec-tests - tests for TOML 0.5.0 😅
from taplo.
https://github.com/iarna/toml-spec-tests/tree/1.0.0-rc.1 aha!
from taplo.
Related Issues (20)
- Latest CLI release doesn't contain build assets HOT 3
- Why was default-tls unconditionally enabled for reqwest? HOT 4
- 404 for prebuilt CLI binaries HOT 8
- How do I get how many values there are? HOT 2
- doesn't work with poetry's package-mode = false HOT 2
- taplo-cli 0.9.1 not released to crates.io yet HOT 3
- LSP server does not set config_file.path properly.
- Panic in v0.7 HOT 2
- [LSP] Setting up schemas with SchemaStore.nvim HOT 2
- semantic checks of toml files HOT 1
- `no-default-features` is broken
- In vscode, if the toml file path contains tasks, an error will be reported! HOT 8
- Valid edition 2024 in Cargo.toml file causes error. HOT 1
- "expected identifier" error for date-like table name
- Underscores in urls for pyproject.toml not supported for [tool.poetry.dependencies] HOT 1
- Publish even-better-toml 0.19.2 to open-vsx
- doesn't work with poetry's package-mode = false HOT 2
- If the file name ends with ".test.toml", syntax highlighting will report errors. HOT 1
- TOML Keyword Modification Feature in Taplo
- Taplo lsp abandons formating and diagnostic if it cannot find a schema HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from taplo.