mirror of
https://github.com/kanaka/mal.git
synced 2024-09-11 13:55:55 +03:00
Add a regression run to Travis that enables hard deferrables but omits optionals so that we can test to make sure that all the requirements are met for self-hosting in stepA. Cleanup up some of the soft/deferrable/optional markings. Deferrables are what will be needed eventually to self host but aren't needed for the immediate next steps. Optional aren't even needed for self-hosting but are nice things to have. Also: - Sync dart step9 and stepA with step8. Do not eval macroexpanded forms in macroexpand form. - Fix stepA of factor which was missing some fixes from step9. - Increase test timeouts in top-level Makefile for guile and io.
44 lines
543 B
Plaintext
44 lines
543 B
Plaintext
;; Testing evaluation of arithmetic operations
|
|
(+ 1 2)
|
|
;=>3
|
|
|
|
(+ 5 (* 2 3))
|
|
;=>11
|
|
|
|
(- (+ 5 (* 2 3)) 3)
|
|
;=>8
|
|
|
|
(/ (- (+ 5 (* 2 3)) 3) 4)
|
|
;=>2
|
|
|
|
(/ (- (+ 515 (* 87 311)) 302) 27)
|
|
;=>1010
|
|
|
|
(* -3 6)
|
|
;=>-18
|
|
|
|
(/ (- (+ 515 (* -87 311)) 296) 27)
|
|
;=>-994
|
|
|
|
;;; This should throw an error with no return value
|
|
(abc 1 2 3)
|
|
;/.+
|
|
|
|
;; Testing empty list
|
|
()
|
|
;=>()
|
|
|
|
;>>> deferrable=True
|
|
;;
|
|
;; -------- Deferrable Functionality --------
|
|
|
|
;; Testing evaluation within collection literals
|
|
[1 2 (+ 1 2)]
|
|
;=>[1 2 3]
|
|
|
|
{"a" (+ 7 8)}
|
|
;=>{"a" 15}
|
|
|
|
{:a (+ 7 8)}
|
|
;=>{:a 15}
|