arith.right 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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. ./arith.tests: line 161: arithmetic syntax error
  84. ./arith.tests: line 162: arithmetic syntax error
  85. ./arith.tests: line 163: arithmetic syntax error
  86. ./arith.tests: line 164: divide by zero
  87. ./arith.tests: let: line 165: arithmetic syntax error
  88. ./arith.tests: line 166: arithmetic syntax error
  89. ./arith.tests: let: line 167: arithmetic syntax error
  90. abc
  91. def
  92. ghi
  93. ./arith.tests: line 190: arithmetic syntax error
  94. 16 16
  95. ./arith.tests: line 195: arithmetic syntax error
  96. ./arith.tests: line 196: arithmetic syntax error
  97. ./arith.tests: line 197: arithmetic syntax error
  98. 9 9
  99. ./arith.tests: line 204: arithmetic syntax error
  100. ./arith.tests: line 207: arithmetic syntax error
  101. 9 9
  102. 9 9
  103. 9 9
  104. 7 7
  105. 7
  106. 4 4
  107. 32767 32767
  108. 32768 32768
  109. 131072 131072
  110. 2147483647 2147483647
  111. 1 1
  112. 4 4
  113. 4 4
  114. 5 5
  115. 5 5
  116. 4 4
  117. 3 3
  118. 3 3
  119. 4 4
  120. 4 4
  121. 7 7
  122. ./arith.tests: line 256: arithmetic syntax error
  123. ./arith.tests: line 258: arithmetic syntax error
  124. ./arith.tests: line 259: arithmetic syntax error
  125. ./arith.tests: line 261: arithmetic syntax error
  126. ./arith.tests: line 262: arithmetic syntax error
  127. 4 4
  128. 7 7
  129. -7 -7
  130. 7
  131. 7
  132. ./arith1.sub: line 2: arithmetic syntax error
  133. ./arith1.sub: line 3: arithmetic syntax error
  134. ./arith1.sub: line 4: arithmetic syntax error
  135. ./arith1.sub: line 5: arithmetic syntax error
  136. 6 6
  137. 3 3
  138. 7 7
  139. 4 4
  140. 0 0
  141. 3 3
  142. 7 7
  143. 2 2
  144. -2 -2
  145. 1 1
  146. 7
  147. 7
  148. 7
  149. 7
  150. 7
  151. 7
  152. 5 5
  153. 1 1
  154. 6 6
  155. 2 2
  156. 3 3
  157. 1 1
  158. 4 4
  159. 0 0
  160. -7
  161. -7
  162. 7
  163. 7
  164. -7 -7
  165. -7 -7
  166. 7 7
  167. 7 7
  168. 8 12
  169. ./arith.tests: line 289: arithmetic syntax error
  170. 42
  171. 42
  172. 42
  173. ./arith.tests: line 301: a[b[c]d]=e: not found