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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. my_string=
  2. my_string.to_string()="\t"
  3. my_string=\
  4. my_string.to_string()="\\"
  5. my_string=/
  6. my_string.to_string()="\/"
  7. my_string.to_string(NOSLASHESCAPE)="/"
  8. my_string=/foo/bar/baz
  9. my_string.to_string()="\/foo\/bar\/baz"
  10. my_string.to_string(NOSLASHESCAPE)="/foo/bar/baz"
  11. my_string=foo
  12. my_string.to_string()="foo"
  13. my_int=9
  14. my_int.to_string()=9
  15. my_array=
  16. [0]=1
  17. [1]=2
  18. [2]=3
  19. [3]=null
  20. [4]=5
  21. my_array.to_string()=[ 1, 2, 3, null, 5 ]
  22. my_array=
  23. [0]=1
  24. [1]=2
  25. [2]=3
  26. [3]=4
  27. [4]=5
  28. [5]=null
  29. [6]=7
  30. my_array.to_string()=[ 1, 2, 3, 4, 5, null, 7 ]
  31. after del_idx(0,1)=0, my_array.to_string()=[ 2, 3, 4, 5, null, 7 ]
  32. after del_idx(0,1)=0, my_array.to_string()=[ 3, 4, 5, null, 7 ]
  33. after del_idx(0,1)=0, my_array.to_string()=[ 4, 5, null, 7 ]
  34. after del_idx(0,1)=0, my_array.to_string()=[ 5, null, 7 ]
  35. after del_idx(0,1)=0, my_array.to_string()=[ null, 7 ]
  36. after del_idx(0,1)=0, my_array.to_string()=[ 7 ]
  37. after del_idx(0,1)=0, my_array.to_string()=[ ]
  38. after del_idx(0,1)=-1, my_array.to_string()=[ ]
  39. after del_idx(0,7)=0, my_array.to_string()=[ ]
  40. after del_idx(0,8)=-1, my_array.to_string()=[ 1, 2, 3, 4, 5, null, 7 ]
  41. my_array=
  42. [0]=3
  43. [1]=1
  44. [2]=2
  45. [3]=null
  46. [4]=0
  47. my_array.to_string()=[ 3, 1, 2, null, 0 ]
  48. my_array=
  49. [0]=null
  50. [1]=0
  51. [2]=1
  52. [3]=2
  53. [4]=3
  54. my_array.to_string()=[ null, 0, 1, 2, 3 ]
  55. baz_obj.to_string()="fark"
  56. my_object=
  57. abc: 12
  58. foo: "bar"
  59. bool0: false
  60. bool1: true
  61. my_object.to_string()={ "abc": 12, "foo": "bar", "bool0": false, "bool1": true }