Skip to content

Commit 4679ed2

Browse files
committed
ADD test for issue write-you-a-scheme-v2#25
1 parent 4184fdf commit 4679ed2

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

test-hs/Golden.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ tests = testGroup "Golden Tests"
3131
, tastyGoldenRun "lexical scope 1" "test/test_scope1.scm" "test/ans/test_scope1.txt"
3232
, tastyGoldenRun "lexical scope 2" "test/test_scope2.scm" "test/ans/test_scope2.txt"
3333
, tastyGoldenRun "issue #23" "test/test_scope3.scm" "test/ans/test_scope3.txt"
34+
, tastyGoldenRun "issue #25" "test/test_scope4.scm" "test/ans/test_scope4.txt"
3435
, tastyGoldenRun "Recursion 1" "test/test_fix.scm" "test/ans/test_fix.txt"
3536
, tastyGoldenRun "Recursion 2" "test/test_fix2.scm" "test/ans/test_fix2.txt"
3637
, tastyGoldenRun "Mutual Recursion 2" "test/test_mutual_rec.scm" "test/ans/test_mutual_rec.txt"

test/ans/test_scope4.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
12

test/test_scope4.scm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
(begin
2+
(define y 42)
3+
(define foo (lambda (x) x))
4+
(let (y 12) (foo y)))

0 commit comments

Comments
 (0)