Add transitive expects test roc files

This commit is contained in:
Jonathan Schear 2024-03-05 21:45:30 -05:00
parent 504e00d44d
commit 06daaa06ae
No known key found for this signature in database
GPG Key ID: 0F4D841667534076
3 changed files with 28 additions and 0 deletions

View 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"

View File

@ -0,0 +1,9 @@
interface Transitive
exposes [
add,
]
imports []
add = \num1, num2 -> (num1 + num2)
expect add 1 2 == 3

View File

@ -0,0 +1,5 @@
package "transitive-tests"
exposes [
Direct,
]
packages {}