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.4 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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_array=
  17. [0]=3
  18. [1]=1
  19. [2]=2
  20. [3]=null
  21. [4]=0
  22. my_array.to_string()=[ 3, 1, 2, null, 0 ]
  23. my_array=
  24. [0]=null
  25. [1]=0
  26. [2]=1
  27. [3]=2
  28. [4]=3
  29. my_array.to_string()=[ null, 0, 1, 2, 3 ]
  30. my_object=
  31. abc: 12
  32. foo: "bar"
  33. bool0: false
  34. bool1: true
  35. my_object.to_string()={ "abc": 12, "foo": "bar", "bool0": false, "bool1": true }
  36. new_obj.to_string()="\u0003"
  37. new_obj.to_string()="foo"
  38. new_obj.to_string()="foo"
  39. new_obj.to_string()="ABC"
  40. new_obj.to_string()=null
  41. new_obj.to_string()=true
  42. new_obj.to_string()=12
  43. new_obj.to_string()=12.300000
  44. new_obj.to_string()=[ "\n" ]
  45. new_obj.to_string()=[ "\nabc\n" ]
  46. new_obj.to_string()=[ null ]
  47. new_obj.to_string()=[ ]
  48. new_obj.to_string()=[ false ]
  49. new_obj.to_string()=[ "abc", null, "def", 12 ]
  50. new_obj.to_string()={ }
  51. new_obj.to_string()={ "foo": "bar" }
  52. new_obj.to_string()={ "foo": "bar", "baz": null, "bool0": true }
  53. new_obj.to_string()={ "foo": [ null, "foo" ] }
  54. new_obj.to_string()={ "abc": 12, "foo": "bar", "bool0": false, "bool1": true, "arr": [ 1, 2, 3, null, 5 ] }
  55. got error as expected
  56. got error as expected
  57. got error as expected
  58. new_obj.to_string()={ "foo": { "bar": 13 } }