Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed Sep 11, 2023
1 parent 63c0394 commit f38f49e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
10 changes: 6 additions & 4 deletions resources/scripts/case.pal
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env auto-editor palet

#lang palet

(assert (equal? (case (+ 7 5) [(1 2 3) 'small] [(10 11 12) 'big]) 'big))
(assert (equal? (case (- 7 5) [(1 2 3) 'small] [(10 11 12) 'big]) 'small))
(assert (case (mod 3 2) [(0) #f] [else #t]))
Expand All @@ -18,7 +20,7 @@
)
)

(assert (equal? read-tb-ntsc 3 #f) 3/1)
(assert (equal? read-tb-ntsc 3 #t) 2997/1000)
(assert (equal? read-tb-ntsc 30 #f) 30/1)
(assert (equal? read-tb-ntsc 30 #t) 30000/1)
(assert (equal? (read-tb-ntsc 3 #f) 3/1))
(assert (equal? (read-tb-ntsc 3 #t) 2997/1000))
(assert (equal? (read-tb-ntsc 30 #f) 30/1))
(assert (equal? (read-tb-ntsc 30 #t) 30000/1001))
2 changes: 2 additions & 0 deletions resources/scripts/maxcut.pal
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env auto-editor palet

#lang palet

(define (remove-large! arr lim replace with)
(define start-p 0)
(define active #f)
Expand Down
1 change: 1 addition & 0 deletions resources/scripts/scope.pal
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env auto-editor palet

#lang palet
; Enforce lexical scoping

(define (f x) (lambda (y) (+ x y)))
Expand Down

0 comments on commit f38f49e

Please sign in to comment.