mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-19 04:41:37 +03:00
Refactor unit tests for JSON decoding/encoding
The unit tests for de-json:html and en-json:html in zuse.hoon were copied from the JSON Test Suite (https://github.com/nst/JSONTestSuite). While a good test suite if usable as-is, it has a lot of problems with it, namely: inconsistent test names; repeated tests; and mixing tests for multiple cases into one file. Since the tests need to be manually added to Urbit anyway, this commit uses the opportunity to clean up the test suite by making the following changes: - Renaming tests to use a consistent naming scheme - Removing repetetive test cases - Splitting multi-case tests into multiple single-purpose tests
This commit is contained in:
parent
365a1d5af9
commit
345c4a8ae5