Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Port CPython 3.6.5 test cases #8

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

wdv4758h
Copy link
Contributor

@wdv4758h wdv4758h commented Jun 3, 2018

I've ported CPython 3.6.5's test cases for json module to hyperjson. I disable the test_recursion.py due to it crash the process. Except the test_recursion.py, I get 44 failed, 27 passed for these test cases. Hopefully, this can help us understand how compatable we are and disscover bugs or some edge cases.

If we discover some behavior we won't implement at all, we better write them done to the docs.

def test_hyperjson(self):
# FIXME: hyperjson does not have any of this
pass
# self.assertEqual(self.json.scanner.make_scanner.__module__, 'hyperjson')
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No clue what these scanner things are. I guess we should document that incompatibility somewhere. 🤔

@mre
Copy link
Owner

mre commented Nov 20, 2018

@wdv4758h, could you merge the master into this branch? Maybe that fixes a few more tests now. I'd love to get this merged. 😉 🍷

@wdv4758h
Copy link
Contributor Author

@mre I've merged current master in.

Current result: ============== 41 failed, 172 passed, 31 skipped in 7.54 seconds ===============
Previous result: ============== 42 failed, 159 passed, 31 skipped in 3.69 seconds ===============

@wdv4758h
Copy link
Contributor Author

There are some parameters in standard libarary's json not included in hyperjson, e.g. indent. For these features, we can either add it in or add it to incompatabilty docs.

@mre mre mentioned this pull request Nov 26, 2018
@mre
Copy link
Owner

mre commented Nov 26, 2018

FYI: Working on the fixes over at #54 in case anybody wants to chime in. 😉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants