a few more test cases
This commit is contained in:
parent
7b7906bf09
commit
f69b4c0881
@ -175,7 +175,13 @@ extend MyObject
|
|||||||
|
|
||||||
## 35 - 39
|
## 35 - 39
|
||||||
[MyObject.System.System.System KING == #KING],
|
[MyObject.System.System.System KING == #KING],
|
||||||
[self testMakeBlock == 49036]
|
[self testMakeBlock == 49036],
|
||||||
|
[ ((-2305843009213693952 * -2305843009213693952 * 2305843009213693952 * 2305843009213693952 * 2305843009213693952) - 1 + 2) = 65185151242703554760590262029100101153646988597309960020356494379340201592426774597868716033 ],
|
||||||
|
[ "%d" strfmt((-2305843009213693952 * -2305843009213693952 * 2305843009213693952 * 2305843009213693952 * 2305843009213693952) - 1 + 2) = '65185151242703554760590262029100101153646988597309960020356494379340201592426774597868716033' ],
|
||||||
|
[ "%#b" strfmt((-2305843009213693952 * -2305843009213693952 * 2305843009213693952 * 2305843009213693952 * 2305843009213693952) - 1 + 2) = '2r100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001' ],
|
||||||
|
|
||||||
|
## 40 - 44
|
||||||
|
[ "%#x" strfmt((-2305843009213693952 * -2305843009213693952 * 2305843009213693952 * 2305843009213693952 * 2305843009213693952) - 1 + 2) = '16r20000000000000000000000000000000000000000000000000000000000000000000000000001' ]
|
||||||
).
|
).
|
||||||
|
|
||||||
limit := tc size.
|
limit := tc size.
|
||||||
@ -185,6 +191,6 @@ extend MyObject
|
|||||||
| tb |
|
| tb |
|
||||||
tb := tc at: idx.
|
tb := tc at: idx.
|
||||||
System log(System.Log.INFO, idx asString, (if (tb value) { ' PASS' } else { ' FAIL' }), S'\n').
|
System log(System.Log.INFO, idx asString, (if (tb value) { ' PASS' } else { ' FAIL' }), S'\n').
|
||||||
]
|
].
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,6 +22,7 @@ LIBSRCS := \
|
|||||||
heap.c \
|
heap.c \
|
||||||
logfmt.c \
|
logfmt.c \
|
||||||
moo.c \
|
moo.c \
|
||||||
|
number.c \
|
||||||
obj.c \
|
obj.c \
|
||||||
pf.c \
|
pf.c \
|
||||||
rbt.c \
|
rbt.c \
|
||||||
|
Loading…
Reference in New Issue
Block a user