You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

test1.expected 1.2 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. my_string=
  2. my_string.to_string()="\t"
  3. my_string=\
  4. my_string.to_string()="\\"
  5. my_string=foo
  6. my_string.to_string()="foo"
  7. my_int=9
  8. my_int.to_string()=9
  9. my_array=
  10. [0]=1
  11. [1]=2
  12. [2]=3
  13. [3]=null
  14. [4]=5
  15. my_array.to_string()=[ 1, 2, 3, null, 5 ]
  16. my_object=
  17. abc: 12
  18. foo: "bar"
  19. bool0: false
  20. bool1: true
  21. my_object.to_string()={ "abc": 12, "foo": "bar", "bool0": false, "bool1": true }
  22. new_obj.to_string()="\u0003"
  23. new_obj.to_string()="foo"
  24. new_obj.to_string()="foo"
  25. new_obj.to_string()="ABC"
  26. new_obj.to_string()=null
  27. new_obj.to_string()=true
  28. new_obj.to_string()=12
  29. new_obj.to_string()=12.300000
  30. new_obj.to_string()=[ "\n" ]
  31. new_obj.to_string()=[ "\nabc\n" ]
  32. new_obj.to_string()=[ null ]
  33. new_obj.to_string()=[ ]
  34. new_obj.to_string()=[ false ]
  35. new_obj.to_string()=[ "abc", null, "def", 12 ]
  36. new_obj.to_string()={ }
  37. new_obj.to_string()={ "foo": "bar" }
  38. new_obj.to_string()={ "foo": "bar", "baz": null, "bool0": true }
  39. new_obj.to_string()={ "foo": [ null, "foo" ] }
  40. new_obj.to_string()={ "abc": 12, "foo": "bar", "bool0": false, "bool1": true, "arr": [ 1, 2, 3, null, 5 ] }
  41. got error as expected
  42. got error as expected
  43. got error as expected
  44. new_obj.to_string()={ "foo": { "bar": 13 } }