From f69b4c0881a09b6da98590baff093c80c929f1bd Mon Sep 17 00:00:00 2001 From: "hyunghwan.chung" Date: Fri, 21 Dec 2018 16:58:58 +0000 Subject: [PATCH] a few more test cases --- moo/kernel/test-001.moo | 10 ++++++++-- moo/lib/icc.mak | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/moo/kernel/test-001.moo b/moo/kernel/test-001.moo index 844491f..84847ce 100644 --- a/moo/kernel/test-001.moo +++ b/moo/kernel/test-001.moo @@ -175,7 +175,13 @@ extend MyObject ## 35 - 39 [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. @@ -185,6 +191,6 @@ extend MyObject | tb | tb := tc at: idx. System log(System.Log.INFO, idx asString, (if (tb value) { ' PASS' } else { ' FAIL' }), S'\n'). - ] + ]. } } diff --git a/moo/lib/icc.mak b/moo/lib/icc.mak index a9eff4c..fb623e6 100644 --- a/moo/lib/icc.mak +++ b/moo/lib/icc.mak @@ -22,6 +22,7 @@ LIBSRCS := \ heap.c \ logfmt.c \ moo.c \ + number.c \ obj.c \ pf.c \ rbt.c \