From f4c8a091aaf662b9b544a852a728459e84e5b7f5 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Sun, 4 Jan 2015 15:47:20 -0600 Subject: Make: refactor number type. Support large numbers. - Can support numbers up to 100 decimal digits in length. - Still no support for negative numbers or floating point. - Change time-secs to time-ms and remove conditional in perf.mal --- tests/step1_read_print.mal | 2 ++ tests/step2_eval.mal | 3 +++ 2 files changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/step1_read_print.mal b/tests/step1_read_print.mal index 4ac08cb..8172479 100644 --- a/tests/step1_read_print.mal +++ b/tests/step1_read_print.mal @@ -40,6 +40,8 @@ abc-def ;=>"abc\"def" ;;;"abc\ndef" ;;;;=>"abc\ndef" +"" +;=>"" ;; Testing read of lists diff --git a/tests/step2_eval.mal b/tests/step2_eval.mal index 2f48c73..aaf1a7d 100644 --- a/tests/step2_eval.mal +++ b/tests/step2_eval.mal @@ -11,6 +11,9 @@ (/ (- (+ 5 (* 2 3)) 3) 4) ;=>2 +(/ (- (+ 515 (* 222 311)) 300) 41) +;=>1689 + (abc 1 2 3) ; .*\'abc\' not found.* -- cgit v1.2.3