Skip to content
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

Merged
merged 26 commits into from
Sep 14, 2023
Merged

YAML Test Suite tests #59

merged 26 commits into from
Sep 14, 2023

Conversation

aSemy
Copy link
Collaborator

@aSemy aSemy commented Jun 10, 2023

Runs tests using YAML Test Suite data

TODO

aSemy added a commit that referenced this pull request Jun 11, 2023
Updating `MappingNode` to be immutable makes the code more Kotlin-esque

Change split off from #59
@aSemy aSemy marked this pull request as ready for review September 4, 2023 10:37
@aSemy aSemy requested a review from krzema12 September 4, 2023 10:37
@krzema12
Copy link
Owner

krzema12 commented Sep 7, 2023

@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.:

  • kotlinizing code
  • fixing code
  • running tests from the YAML test suite

@aSemy
Copy link
Collaborator Author

aSemy commented Sep 13, 2023

@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.:

  • kotlinizing code
  • fixing code
  • running tests from the YAML test suite

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
@aSemy aSemy marked this pull request as draft September 13, 2023 09:30
@aSemy aSemy changed the base branch from main to feat/kotlinize-code September 13, 2023 09:31
@aSemy aSemy mentioned this pull request Sep 13, 2023
Base automatically changed from feat/kotlinize-code to main September 13, 2023 11:21
aSemy added a commit that referenced this pull request Sep 13, 2023
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`
@aSemy aSemy marked this pull request as ready for review September 13, 2023 12:04
build.gradle.kts Show resolved Hide resolved
@krzema12
Copy link
Owner

Thanks! 🙇

@aSemy aSemy merged commit 043626d into main Sep 14, 2023
4 checks passed
@aSemy aSemy deleted the feat/yaml_test_suite branch September 14, 2023 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants