mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
Migrate pattern tests
This commit is contained in:
parent
67364e1a42
commit
c57aaecad4
3 changed files with 22 additions and 45 deletions
|
@ -0,0 +1,13 @@
|
|||
app "test" provides [main] to "./platform"
|
||||
|
||||
main =
|
||||
when A "" is
|
||||
# ^^^^ [A Str, B Str, C Str, D Str]
|
||||
A x | B x -> x
|
||||
# ^ Str
|
||||
# ^ Str
|
||||
# ^ Str
|
||||
C x | D x -> x
|
||||
# ^ Str
|
||||
# ^ Str
|
||||
# ^ Str
|
|
@ -0,0 +1,9 @@
|
|||
app "test" provides [main] to "./platform"
|
||||
|
||||
main =
|
||||
when A "" is
|
||||
# ^^^^ [A Str, B Str]
|
||||
A x | B x -> x
|
||||
# ^ Str
|
||||
# ^ Str
|
||||
# ^ Str
|
Loading…
Add table
Add a link
Reference in a new issue