Skip to content

Commit f40da43

Browse files
committed
Fix test and add check file
1 parent b5144fa commit f40da43

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

tests/run/boehm-berarducci.check

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
List(1, 2)
2+
List(2)
3+
1
4+
false
5+
List(1, 2)
6+
List(2)
7+
1
8+
false

tests/run/boehm-berarducci.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ object ListOps2 extends ListOps:
6868

6969
def fst[T](v: ListView[T]): T = v(hd => tl => hd)(() => ???)
7070
def snd[T](v: ListView[T]): List[T] = v(hd => tl => tl)(() => ???)
71-
def isPair[T](v: ListView[T]): Boolean = v(hd => tl => false)(() => true)
71+
def isPair[T](v: ListView[T]): Boolean = v(hd => tl => true)(() => false)
7272

7373
@main def Test() =
7474
ListOps1.test()

0 commit comments

Comments
 (0)