diff options
| author | Joel Martin <github@martintribe.org> | 2015-01-04 15:47:20 -0600 |
|---|---|---|
| committer | Joel Martin <github@martintribe.org> | 2015-01-09 16:16:56 -0600 |
| commit | f4c8a091aaf662b9b544a852a728459e84e5b7f5 (patch) | |
| tree | ac1df2f7549cbac089678c6b6bd92083dfa63174 /tests | |
| parent | 0f352c382c7291b12da7f1800f54b9a27a27ad64 (diff) | |
| download | mal-f4c8a091aaf662b9b544a852a728459e84e5b7f5.tar.gz mal-f4c8a091aaf662b9b544a852a728459e84e5b7f5.zip | |
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
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/step1_read_print.mal | 2 | ||||
| -rw-r--r-- | tests/step2_eval.mal | 3 |
2 files changed, 5 insertions, 0 deletions
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.* |
