test_string problem when bracket used

Issue #39 invalid
Anonymous created an issue

Dear,
In function test_string, if js has brackets , then test fails
e.g:
js = "{\"strVar\" : \"hello world\"}";

Regards,
Fuad

Comments (2)

  1. Serge Zaitsev repo owner

    Have you also modified the test after changing the string?
    In your case token 0 will be the root object, token 1 - strVar, token 2 - hello world. Which of course requires test code to be adjusted (to use 3 tokens instead of 2)

  2. Log in to comment