From c150ec41f4f0b8f384f4b1b493a5ca61db42573c Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Wed, 24 Dec 2014 21:51:23 -0700 Subject: Haskell: Add steps9-A, metadata, and atoms. Some refactoring of Core.hs to make better use of pattern matching. Only remaining thing is exception handling (generic try/throw). --- tests/step6_file.mal | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests') diff --git a/tests/step6_file.mal b/tests/step6_file.mal index f76e4f5..d681532 100644 --- a/tests/step6_file.mal +++ b/tests/step6_file.mal @@ -21,6 +21,7 @@ (inc3 9) ;=>12 +;;; TODO: really a step5 test ;; ;; Testing that (do (do)) not broken by TCO (do (do 1 2)) @@ -36,6 +37,7 @@ ;; ;; -------- Optional Functionality -------- +;; Testing comments in a file (load-file "../tests/incB.mal") ; "incB.mal finished" ;=>"incB.mal return string" @@ -43,3 +45,13 @@ ;=>11 (inc5 7) ;=>12 + +;;; TODO: really a step5 test +;; Testing that vector params not broken by TCO +(def! g (fn* [] 78)) +(g) +;=>78 +(def! g (fn* [a] (+ a 78))) +(g 3) +;=>81 + -- cgit v1.2.3