mirror of
https://github.com/roc-lang/roc.git
synced 2024-10-05 06:37:26 +03:00
Add transitive expects test roc files
This commit is contained in:
parent
504e00d44d
commit
06daaa06ae
14
crates/cli/tests/expects-transitive/Direct.roc
Normal file
14
crates/cli/tests/expects-transitive/Direct.roc
Normal file
@ -0,0 +1,14 @@
|
||||
interface Direct
|
||||
exposes [
|
||||
addAndStringify,
|
||||
]
|
||||
imports [
|
||||
Transitive,
|
||||
]
|
||||
|
||||
addAndStringify = \num1, num2 ->
|
||||
Num.toStr (Transitive.add num1 num2)
|
||||
|
||||
expect addAndStringify 1 2 == "3"
|
||||
|
||||
expect addAndStringify 3 4 == "7"
|
9
crates/cli/tests/expects-transitive/Transitive.roc
Normal file
9
crates/cli/tests/expects-transitive/Transitive.roc
Normal file
@ -0,0 +1,9 @@
|
||||
interface Transitive
|
||||
exposes [
|
||||
add,
|
||||
]
|
||||
imports []
|
||||
|
||||
add = \num1, num2 -> (num1 + num2)
|
||||
|
||||
expect add 1 2 == 3
|
5
crates/cli/tests/expects-transitive/main.roc
Normal file
5
crates/cli/tests/expects-transitive/main.roc
Normal file
@ -0,0 +1,5 @@
|
||||
package "transitive-tests"
|
||||
exposes [
|
||||
Direct,
|
||||
]
|
||||
packages {}
|
Loading…
Reference in New Issue
Block a user