Annotation of parser3/tests/422.html, revision 1.3
1.1 moko 1: @main[]
1.3 ! moko 2:
! 3: Parser3 with ^if($math:int_max > 0x100000000){wide int (int53)}{32-bit int}
! 4:
1.1 moko 5: ^show(2000000000)
6: ^show(4000000000)
7: ^show(5000000000)
8: ^show(-2000000000)
9: ^show(-4000000000)
10: ^show(-5000000000)
11:
1.3 ! moko 12: ^show(-1)
! 13: ^show(-2)
! 14:
! 15: ^show($math:int_max-1)
! 16: ^show($math:int_max)
! 17: ^show($math:int_max+1)
! 18:
! 19: ^show($math:int_min-1)
! 20: ^show($math:int_min)
! 21: ^show($math:int_min+1)
! 22:
! 23: $n(10000000000000000)
1.2 moko 24:
25: n:$n (clipped 0x^n.format[%x])
26:
27: 1. % ^eval($n % ($n-1))
28:
29: 2. \ ^eval($n \ ($n/1000))
30:
31: 3. ~ ^eval(~$n)[%x]
32:
33: 4. >> ^eval($n >> 16 )[%x]
34:
35: 5. << ^eval($n << 16 )[%x] (^eval($n << 16 ))
36:
37: 6. % ^eval(1 % 0.3)
38:
1.3 ! moko 39: 7. mod ^n.mod($n-10) $n - out of double precision, but works
1.2 moko 40:
41: 8. $i(10) $i(^i.int[])
42: mod ^i.mod(4.8) $i
43:
44: 9. $n(10)
45: mod ^n.mod(4.8) $n
1.1 moko 46:
1.3 ! moko 47: $d[^date::now[]]
! 48: 10. wide int.as_int overflow, exception : ^try-catch{ $d.year($math:int_max) }
! 49: 11. double.as_int overflow, no exception : ^try-catch{ $d.year($math:int_max+1) }
! 50:
1.1 moko 51: @show[n]
52: ${n}: ^n.format[%d] ^n.format[%u] ^n.format[%x]
E-mail: