arith.right 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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. unary plus, minus
  47. -4 -4
  48. 4 4
  49. conditional expressions
  50. 1 1
  51. 32 32
  52. 32 32
  53. 1 1
  54. 1 1
  55. 32 32
  56. check that the unevaluated part of the ternary operator does not do evaluation or assignment
  57. 20 20
  58. 30 30
  59. 20 20
  60. 30 30
  61. check precedence of assignment vs. conditional operator
  62. ./arith.tests: line 116: arithmetic syntax error
  63. check precedence of assignment vs. conditional operator
  64. associativity of assignment-operator operator
  65. 6 6
  66. 6,5,3 6,5,3
  67. octal, hex
  68. 263 263
  69. 255 255
  70. 40 40
  71. other bases
  72. 10 10
  73. 10 10
  74. 10 10
  75. 10 10
  76. 10 10
  77. 10 10
  78. 36 36
  79. 36 36
  80. 62 62
  81. 63 63
  82. missing number after base
  83. 0 0
  84. ./arith.tests: line 162: arithmetic syntax error
  85. ./arith.tests: line 164: divide by zero
  86. ./arith.tests: let: line 165: arithmetic syntax error
  87. ./arith.tests: line 166: arithmetic syntax error
  88. ./arith.tests: let: line 167: arithmetic syntax error
  89. abc
  90. def
  91. ghi
  92. ./arith.tests: line 190: arithmetic syntax error
  93. 16 16
  94. ./arith.tests: line 195: arithmetic syntax error
  95. ./arith.tests: line 196: malformed ?: operator
  96. ./arith.tests: line 197: arithmetic syntax error
  97. 9 9
  98. ./arith.tests: line 204: arithmetic syntax error
  99. ./arith.tests: line 207: arithmetic syntax error
  100. 9 9
  101. 9 9
  102. 9 9
  103. 7 7
  104. 7
  105. 4 4
  106. 32767 32767
  107. 32768 32768
  108. 131072 131072
  109. 2147483647 2147483647
  110. 1 1
  111. 4 4
  112. 4 4
  113. 5 5
  114. 5 5
  115. 4 4
  116. 3 3
  117. 3 3
  118. 4 4
  119. 4 4
  120. 7 7
  121. ./arith.tests: line 256: arithmetic syntax error
  122. ./arith.tests: line 258: arithmetic syntax error
  123. ./arith.tests: line 259: arithmetic syntax error
  124. ./arith.tests: line 261: arithmetic syntax error
  125. ./arith.tests: line 262: arithmetic syntax error
  126. 4 4
  127. 7 7
  128. -7 -7
  129. 7
  130. 7
  131. ./arith1.sub: line 2: arithmetic syntax error
  132. ./arith1.sub: line 3: arithmetic syntax error
  133. ./arith1.sub: line 4: arithmetic syntax error
  134. ./arith1.sub: line 5: arithmetic syntax error
  135. 6 6
  136. 3 3
  137. 7 7
  138. 4 4
  139. 0 0
  140. 3 3
  141. 7 7
  142. 2 2
  143. -2 -2
  144. 1 1
  145. 7
  146. 7
  147. 7
  148. 7
  149. 7
  150. 7
  151. 5 5
  152. 1 1
  153. 6 6
  154. 2 2
  155. 3 3
  156. 1 1
  157. 4 4
  158. 0 0
  159. -7
  160. -7
  161. 7
  162. 7
  163. -7 -7
  164. -7 -7
  165. 7 7
  166. 7 7
  167. 8 12
  168. ./arith.tests: line 289: arithmetic syntax error
  169. 42
  170. 42
  171. 42
  172. ./arith.tests: line 301: a[b[c]d]=e: not found