2017-11-18 18:01:00 -05:00
|
|
|
---
|
|
|
|
Test
|
|
|
|
---
|
|
|
|
Test recursion capabilities of various functions.
|
|
|
|
|
|
|
|
| script | lisp interpreter fixture |
|
2017-11-19 10:53:21 -05:00
|
|
|
| show | evaluate text | (load "lisp/random/big-list.lisp") |
|
2017-11-18 18:01:00 -05:00
|
|
|
| show | evaluate text | (load "lisp/random/list-builder.lisp") |
|
2017-11-19 10:53:21 -05:00
|
|
|
| check | evaluate text | big-list | =~/1\)$/ |
|
2017-11-18 18:01:00 -05:00
|
|
|
| check | evaluate text | (length big-list) | 16384 |
|
|
|
|
| check | evaluate text | (length (apply 'list big-list)) | 16384 |
|
|
|
|
| check | evaluate text | (apply '/ big-list) | 1 |
|
|
|
|
| check | evaluate text | (apply '* big-list) | 1 |
|
|
|
|
| check | evaluate text | (apply '+ big-list) | 16384 |
|
|
|
|
| check | evaluate text | (apply '- big-list) | -16382 |
|
|
|
|
| check | evaluate text | (apply '= big-list) | T |
|
|
|
|
| check | evaluate text | (apply '> (decreasing-list 0 10000)) | T |
|
2017-11-19 10:53:21 -05:00
|
|
|
| check | evaluate text | (apply '< (increasing-list 10000 10000)) | T |
|