mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
40 lines
650 B
Text
40 lines
650 B
Text
app "expects-test"
|
|
packages { pf: "zig-platform/main.roc" }
|
|
imports []
|
|
provides [main] to pf
|
|
|
|
makeA =
|
|
a = 1
|
|
|
|
expect a == 2
|
|
expect a == 3
|
|
|
|
a
|
|
|
|
expect
|
|
a = makeA
|
|
b = 2i64
|
|
|
|
a == b
|
|
|
|
polyDbg = \x ->
|
|
dbg x
|
|
|
|
x
|
|
|
|
main =
|
|
str = "this will for sure be a large string so when we split it it will use seamless slices which affect printing"
|
|
words = Str.split str " "
|
|
expect words == []
|
|
|
|
x = 42
|
|
dbg x
|
|
|
|
dbg "Fjoer en ferdjer frieten oan dyn geve lea"
|
|
|
|
dbg "this is line 24"
|
|
|
|
r = { x: polyDbg "abc", y: polyDbg 10u8, z: polyDbg (A (B C)) }
|
|
|
|
when r is
|
|
_ -> "Program finished!\n"
|