-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
YAML Test Suite tests #59
Conversation
950016f
to
9c03fde
Compare
Updating `MappingNode` to be immutable makes the code more Kotlin-esque Change split off from #59
ba1b5ef
to
1cdf9fb
Compare
@aSemy this PR looks like it contains several kinds of changes that are not really related. It would be much easier for me to review and check for correctness if we split it into e. g.:
|
Agreed, I'll split them out. |
- remove unused functions - avoid using `!!` to force non-null - update Parse to have multiplatform constructor - add/adjust docs and docs formatting - avoid using scope functions for simple checks (scope functions tend to be more difficult to read) - refactor environment variable fetching (improve legibility, and prepare for multiplatform testing) - use sealed classes where possible (because the classes are not intended to be extended by external libraries) - convert `NodeTuple` to regular class (data classes ABI is more difficult to maintain) - re-write while-loops to avoid awkward scope functions and variable assignments
3d83c83
to
bd0676c
Compare
code and docs tidying, in preparation for YAML Test Suites #59 - remove unused `toBigDecimal` function - avoid using `!!` to force non-null - update Parse to have multiplatform constructor - add/adjust docs and docs formatting - avoid using scope functions for simple checks (scope functions tend to be more difficult to read) - refactor environment variable fetching (improve legibility, and prepare for multiplatform testing) - use sealed classes where possible (because the classes are not intended to be extended by external libraries) - convert `NodeTuple` to regular class (data classes ABI is more difficult to maintain) - re-write while-loops to avoid awkward scope functions and variable assignments - Replace custom `StreamDataWriter` in test with existing `StringStreamDataWriter`
src/jvmTest/java/org/snakeyaml/engine/usecases/fuzzy/FuzzYAMLRead56902Test.java
Show resolved
Hide resolved
src/commonMain/kotlin/org/snakeyaml/engine/v2/exceptions/MarkedYamlEngineException.kt
Outdated
Show resolved
Hide resolved
src/commonTest/kotlin/org/snakeyaml/engine/test_suite/SuiteUtils.kt
Outdated
Show resolved
Hide resolved
Thanks! 🙇 |
Runs tests using YAML Test Suite data
TODO
.idea/codeStyles/codeStyleConfig.xml
to the repo in a separate PR. Commit IJ codestyle files #64YamlNull
#58MappingNode.value
to be immutable #60flattenMapping()
being ignored #65val singleNode
tofun getSingleNode()
#66