Skip to content

Commit

Permalink
add more if tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sorawee committed Oct 11, 2024
1 parent b0306d6 commit 5ba8d02
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test-cases/test-if.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,8 @@
(* 4 10)
; false branch
(+ 2 4)))

(define if10
(if (< 10 20) ; check if ten is less than twenty
(* 4 10) ; true branch
(+ 2 4))) ; false branch
5 changes: 5 additions & 0 deletions tests/test-cases/test-if.rkt.out
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,8 @@
(* 4 10)
; false branch
(+ 2 4)))

(define if10
(if (< 10 20) ; check if ten is less than twenty
(* 4 10) ; true branch
(+ 2 4))) ; false branch

0 comments on commit 5ba8d02

Please sign in to comment.