mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-21 15:59:20 +03:00
disable Closure.roc example
This commit is contained in:
parent
dd84517f5f
commit
8d85e469f7
@ -481,6 +481,10 @@ mod cli_run {
|
||||
eprintln!("WARNING: skipping testing benchmark {} because the test is broken right now!", benchmark.filename);
|
||||
return;
|
||||
}
|
||||
"Closure.roc" => {
|
||||
eprintln!("WARNING: skipping testing benchmark {} because the test is broken right now!", benchmark.filename);
|
||||
return;
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
@ -524,6 +528,10 @@ mod cli_run {
|
||||
eprintln!("WARNING: skipping testing benchmark {} because the test is broken right now!", benchmark.filename);
|
||||
return;
|
||||
}
|
||||
"Closure.roc" => {
|
||||
eprintln!("WARNING: skipping testing benchmark {} because the test is broken right now!", benchmark.filename);
|
||||
return;
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
@ -565,6 +573,10 @@ mod cli_run {
|
||||
eprintln!("WARNING: skipping testing benchmark {} because the test is broken right now!", benchmark.filename);
|
||||
return;
|
||||
}
|
||||
"Closure.roc" => {
|
||||
eprintln!("WARNING: skipping testing benchmark {} because the test is broken right now!", benchmark.filename);
|
||||
return;
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
|
@ -10,12 +10,15 @@ main = closure1 {}
|
||||
# |> Task.after (\_ -> closure3 {})
|
||||
# |> Task.after (\_ -> closure4 {})
|
||||
# ---
|
||||
|
||||
str = "a long string such that it's malloced"
|
||||
|
||||
closure1 : {} -> Task.Task {} []
|
||||
closure1 = \_ ->
|
||||
Task.succeed (foo toUnitBorrowed "a long string such that it's malloced")
|
||||
Task.succeed (foo toUnitBorrowed str)
|
||||
|> Task.map (\_ -> {})
|
||||
|
||||
toUnitBorrowed = \x -> Str.countGraphemes x
|
||||
toUnitBorrowed = \x -> Str.isEmpty x
|
||||
|
||||
foo = \f, x -> f x
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user