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

When try "Test in LeetCode" using customized test case, judge failed due to wrong data contract. #104

Closed
dumplingslove opened this issue Feb 6, 2019 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@dumplingslove
Copy link

Input data:
'12'

Actual
√ runtime: 84 ms
× answer: 2
√ stdout: ''

Expected
× Runtime Error
× runtime: N/A
× answer:
× stdout: ''
× error: Line 36: ValueError: No JSON object could be decoded
× error: ValueError: No JSON object could be decoded
raise ValueError("No JSON object could be decoded")
Line 382 in raw_decode (/usr/lib/python2.7/json/decoder.py)
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
Line 364 in decode (/usr/lib/python2.7/json/decoder.py)
return _default_decoder.decode(s)
Line 339 in loads (/usr/lib/python2.7/json/init.py)
Line 24 in to_string (/leetcode/python/deserializer.py)
Line 36 in _driver (Solution.py)
Line 49 in (Solution.py)

@jdneo
Copy link
Member

jdneo commented Feb 7, 2019

@dumplingslove What's the number of the problem?

@dumplingslove
Copy link
Author

@jdneo Thanks for your reply! You can try question #91, i believe all string test case will get this error. I tried "12", '12' and '"12"', none of them can work.

@jdneo
Copy link
Member

jdneo commented Feb 9, 2019

Root cause is dup with #60

@jdneo jdneo closed this as completed Feb 9, 2019
@jdneo jdneo added the duplicate This issue or pull request already exists label Feb 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants