mirror of
https://github.com/roc-lang/roc.git
synced 2024-08-16 22:30:58 +03:00
update glue fixtures to new syntax
This commit is contained in:
parent
6da61d0d16
commit
386f7a6729
@ -2008,7 +2008,7 @@ generateRocRefcounted = \buf, types, type, escapedName ->
|
||||
fn is_refcounted() -> bool {
|
||||
true
|
||||
}
|
||||
}\n
|
||||
}\n\n
|
||||
"""
|
||||
else
|
||||
Str.concat buf "roc_refcounted_noop_impl!($(escapedName));\n\n"
|
||||
|
@ -1,7 +1,4 @@
|
||||
app "app"
|
||||
packages { pf: "platform.roc" }
|
||||
imports []
|
||||
provides [main] to pf
|
||||
app [main] { pf: platform "platform.roc" }
|
||||
|
||||
main = {
|
||||
default: Job {
|
||||
|
5
crates/glue/tests/fixtures/arguments/app.roc
vendored
5
crates/glue/tests/fixtures/arguments/app.roc
vendored
@ -1,7 +1,4 @@
|
||||
app "app"
|
||||
packages { pf: "platform.roc" }
|
||||
imports []
|
||||
provides [main] to pf
|
||||
app [main] { pf: platform "platform.roc" }
|
||||
|
||||
main : I64 -> I64
|
||||
main = \x -> 2 * x
|
||||
|
@ -1,6 +1,3 @@
|
||||
app "app"
|
||||
packages { pf: "platform.roc" }
|
||||
imports []
|
||||
provides [main] to pf
|
||||
app [main] { pf: platform "platform.roc" }
|
||||
|
||||
main = { a: 1995, b: 42 }
|
||||
|
@ -1,6 +1,3 @@
|
||||
app "app"
|
||||
packages { pf: "platform.roc" }
|
||||
imports []
|
||||
provides [main] to pf
|
||||
app [main] { pf: platform "platform.roc" }
|
||||
|
||||
main = Concat (String "Hello, ") (String "World!")
|
||||
|
5
crates/glue/tests/fixtures/closures/app.roc
vendored
5
crates/glue/tests/fixtures/closures/app.roc
vendored
@ -1,7 +1,4 @@
|
||||
app "app"
|
||||
packages { pf: "platform.roc" }
|
||||
imports []
|
||||
provides [main] to pf
|
||||
app [main] { pf: platform "platform.roc" }
|
||||
|
||||
main : I64 -> ({} -> I64)
|
||||
main = \x ->
|
||||
|
@ -1,6 +1,3 @@
|
||||
app "app"
|
||||
packages { pf: "platform.roc" }
|
||||
imports []
|
||||
provides [main] to pf
|
||||
app [main] { pf: platform "platform.roc" }
|
||||
|
||||
main = Foo
|
||||
|
@ -1,7 +1,4 @@
|
||||
app "app"
|
||||
packages { pf: "platform.roc" }
|
||||
imports []
|
||||
provides [main] to pf
|
||||
app [main] { pf: platform "platform.roc" }
|
||||
|
||||
main = {
|
||||
default: Job {
|
||||
|
@ -1,6 +1,6 @@
|
||||
app "app"
|
||||
packages { pf: "platform.roc" }
|
||||
imports [pf.Dep1, pf.Dep2]
|
||||
provides [main] to pf
|
||||
app [main] { pf: platform "platform.roc" }
|
||||
|
||||
import pf.Dep1
|
||||
import pf.Dep2
|
||||
|
||||
main = { s1: Dep1.string "hello", s2: Dep2.string "world" }
|
||||
|
@ -1,6 +1,3 @@
|
||||
app "app"
|
||||
packages { pf: "platform.roc" }
|
||||
imports []
|
||||
provides [main] to pf
|
||||
app [main] { pf: platform "platform.roc" }
|
||||
|
||||
main = { x: { a: 5, b: 24 }, y: "foo", z: [1, 2] }
|
||||
|
@ -1,6 +1,3 @@
|
||||
app "app"
|
||||
packages { pf: "platform.roc" }
|
||||
imports []
|
||||
provides [main] to pf
|
||||
app [main] { pf: platform "platform.roc" }
|
||||
|
||||
main = Tree "root" [Tree "leaf1" [], Tree "leaf2" []]
|
||||
|
@ -1,6 +1,3 @@
|
||||
app "app"
|
||||
packages { pf: "platform.roc" }
|
||||
imports []
|
||||
provides [main] to pf
|
||||
app [main] { pf: platform "platform.roc" }
|
||||
|
||||
main = Cons "World!" (Cons "Hello " Nil)
|
||||
|
@ -1,6 +1,3 @@
|
||||
app "app"
|
||||
packages { pf: "platform.roc" }
|
||||
imports []
|
||||
provides [main] to pf
|
||||
app [main] { pf: platform "platform.roc" }
|
||||
|
||||
main = More "foo" (More "bar" Empty)
|
||||
|
7
crates/glue/tests/fixtures/option/app.roc
vendored
7
crates/glue/tests/fixtures/option/app.roc
vendored
@ -1,9 +1,6 @@
|
||||
app "app"
|
||||
packages { pf: "platform.roc" }
|
||||
imports []
|
||||
provides [main] to pf
|
||||
app [main] { pf: platform "platform.roc" }
|
||||
|
||||
main : Bool -> [ Some Str, None ]
|
||||
main : Bool -> [Some Str, None]
|
||||
main = \returnStr ->
|
||||
if returnStr then
|
||||
Some "Hello World!"
|
||||
|
5
crates/glue/tests/fixtures/rocresult/app.roc
vendored
5
crates/glue/tests/fixtures/rocresult/app.roc
vendored
@ -1,7 +1,4 @@
|
||||
app "app"
|
||||
packages { pf: "platform.roc" }
|
||||
imports []
|
||||
provides [main] to pf
|
||||
app [main] { pf: platform "platform.roc" }
|
||||
|
||||
main : Bool -> Result Str I32
|
||||
main = \returnStr ->
|
||||
|
@ -1,6 +1,3 @@
|
||||
app "app"
|
||||
packages { pf: "platform.roc" }
|
||||
imports []
|
||||
provides [main] to pf
|
||||
app [main] { pf: platform "platform.roc" }
|
||||
|
||||
main = OneTag
|
||||
|
@ -1,6 +1,3 @@
|
||||
app "app"
|
||||
packages { pf: "platform.roc" }
|
||||
imports []
|
||||
provides [main] to pf
|
||||
app [main] { pf: platform "platform.roc" }
|
||||
|
||||
main = Foo "This is a test"
|
||||
|
@ -1,6 +1,3 @@
|
||||
app "app"
|
||||
packages { pf: "platform.roc" }
|
||||
imports []
|
||||
provides [main] to pf
|
||||
app [main] { pf: platform "platform.roc" }
|
||||
|
||||
main = Foo "This is a test"
|
||||
|
Loading…
Reference in New Issue
Block a user