arith.right 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. Format: 'expected actual'
  2. 163 163
  3. 4 4
  4. 16 16
  5. 8 8
  6. 2 2
  7. 4 4
  8. 2 2
  9. 2 2
  10. 1 1
  11. 0 0
  12. 0 0
  13. 0 0
  14. 1 1
  15. 1 1
  16. 2 2
  17. -3 -3
  18. -2 -2
  19. 1 1
  20. 0 0
  21. 2 2
  22. 131072 131072
  23. 29 29
  24. 33 33
  25. 49 49
  26. 1 1
  27. 1 1
  28. 0 0
  29. 0 0
  30. 1 1
  31. 1 1
  32. 1 1
  33. 2 2
  34. 3 3
  35. 1 1
  36. 58 58
  37. 2 2
  38. 60 60
  39. 1 1
  40. 256 256
  41. 16 16
  42. 62 62
  43. 4 4
  44. 29 29
  45. 5 5
  46. -4 -4
  47. 4 4
  48. 1 1
  49. 32 32
  50. 32 32
  51. 1 1
  52. 1 1
  53. 32 32
  54. 20 20
  55. 30 30
  56. 20 20
  57. 30 30
  58. ./arith.tests: line 117: syntax error: 1 ? 20 : x+=2
  59. 6 6
  60. 6,5,3 6,5,3
  61. 263 263
  62. 255 255
  63. 40 40
  64. ./arith.tests: line 163: syntax error: 7 = 43
  65. ./arith.tests: line 165: divide by zero
  66. ./arith.tests: let: line 166: syntax error: jv += $iv
  67. ./arith.tests: line 167: syntax error: jv += $iv
  68. ./arith.tests: let: line 168: syntax error: rv = 7 + (43 * 6
  69. abc
  70. def
  71. ghi
  72. ./arith.tests: line 191: syntax error: ( 4 + A ) + 4
  73. 16 16
  74. ./arith.tests: line 196: syntax error: 4 ? : 3 + 5
  75. ./arith.tests: line 197: syntax error: 1 ? 20
  76. ./arith.tests: line 198: syntax error: 4 ? 20 :
  77. 9 9
  78. ./arith.tests: line 205: syntax error: 0 && B=42
  79. ./arith.tests: line 208: syntax error: 1 || B=88
  80. 9 9
  81. 9 9
  82. 9 9
  83. 7 7
  84. 7
  85. 4 4
  86. 32767 32767
  87. 32768 32768
  88. 131072 131072
  89. 2147483647 2147483647
  90. 1 1
  91. 4 4
  92. 4 4
  93. 5 5
  94. 5 5
  95. 4 4
  96. 3 3
  97. 3 3
  98. 4 4
  99. 4 4
  100. ./arith.tests: line 257: syntax error: 7--
  101. ./arith.tests: line 259: syntax error: --x=7
  102. ./arith.tests: line 260: syntax error: ++x=7
  103. ./arith.tests: line 262: syntax error: x++=7
  104. ./arith.tests: line 263: syntax error: x--=7
  105. 4 4
  106. 7 7
  107. -7 -7
  108. ./arith1.sub: line 2: syntax error: 4--
  109. ./arith1.sub: line 3: syntax error: 4++
  110. ./arith1.sub: line 4: syntax error: 4 --
  111. ./arith1.sub: line 5: syntax error: 4 ++
  112. 6 6
  113. 3 3
  114. 7 7
  115. 4 4
  116. 0 0
  117. 3 3
  118. 7 7
  119. 2 2
  120. -2 -2
  121. 1 1
  122. ./arith1.sub: line 37: syntax error: +++7
  123. ./arith2.sub: line 2: syntax error: --7
  124. ./arith2.sub: line 3: syntax error: ++7
  125. ./arith2.sub: line 4: syntax error: -- 7
  126. ./arith2.sub: line 5: syntax error: ++ 7
  127. 5 5
  128. 1 1
  129. 4 4
  130. 0 0
  131. ./arith2.sub: line 42: syntax error: -- - 7
  132. ./arith2.sub: line 47: syntax error: ++ + 7
  133. 8 12
  134. ./arith.tests: line 290: syntax error: a b
  135. 42
  136. 42
  137. 42
  138. ./arith.tests: line 302: a[b[c]d]=e: not found