Skip to content

Commit

Permalink
Add one more test
Browse files Browse the repository at this point in the history
  • Loading branch information
Danila-Pechenev committed Nov 15, 2023
1 parent 03ca3c6 commit 27940d8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions PeDuCoML/test/defunc/defunc_test.t
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,10 @@
> EOF
let f arg_4 arg_5 = match arg_5 with | x, y -> match arg_4 with | head :: tail -> ((x + y) + head) :: tail
let main = (f ([1; 2; 3])) (5, 10)
$ ./defunc_test.exe <<- EOF
> let f (arg_5 :: arg_4) (x, y) = (x + y + arg_5) :: arg_4
>
> let main = f [1; 2; 3] (5, 10)
> EOF
let f arg_6 arg_7 = match arg_7 with | x, y -> match arg_6 with | arg_5 :: arg_4 -> ((x + y) + arg_5) :: arg_4
let main = (f ([1; 2; 3])) (5, 10)

0 comments on commit 27940d8

Please sign in to comment.