closures
This commit is contained in:
1
tests/expected/35-closures.exit
Normal file
1
tests/expected/35-closures.exit
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
13
tests/expected/35-closures.txt
Normal file
13
tests/expected/35-closures.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
basic: 142
|
||||
snapshot: 15
|
||||
clamp: 50 0 100
|
||||
[INFO] system ready
|
||||
factory: 105 110
|
||||
auto-promote: 21
|
||||
hof: 40
|
||||
reduce: 15
|
||||
compose: 30
|
||||
multi: 105 500
|
||||
widget: slider = 42
|
||||
widget: no handler
|
||||
=== DONE ===
|
||||
@@ -426,4 +426,40 @@ or guard: 7
|
||||
or guard null: 0
|
||||
nested narrow: 10 20
|
||||
guard loop: 3
|
||||
block-lambda: 50
|
||||
block-lambda: 0
|
||||
block-lambda: 100
|
||||
hello block
|
||||
named-fn-type: 7
|
||||
xx-fnptr: 142
|
||||
closure-type: fn_ptr-nonnull=true
|
||||
closure-type: env-null=true
|
||||
closure-call: 15
|
||||
auto-promote: 20
|
||||
auto-promote-var: 10
|
||||
closure-capture: 52
|
||||
closure-snapshot: 15
|
||||
closure-nocap: 14
|
||||
closure-multi: 33
|
||||
closure-block: 60
|
||||
closure-block: 0
|
||||
closure-block: 100
|
||||
[LOG] hello
|
||||
closure-hof: 30
|
||||
closure-hof-bare: 20
|
||||
closure-f32: 10.000000
|
||||
closure-bool: hello
|
||||
closure-2p: 107
|
||||
closure-3p: 61
|
||||
closure-mix: Alice is 35
|
||||
closure-rbool: false true
|
||||
closure-reduce: 115
|
||||
closure-factory: 105 110
|
||||
closure-struct: 10 20
|
||||
closure-compose: 30
|
||||
closure-indep: 15 50
|
||||
opt-closure: none
|
||||
opt-closure: 15
|
||||
opt-closure-btn: 1 99
|
||||
opt-closure-btn: null
|
||||
=== DONE ===
|
||||
|
||||
Reference in New Issue
Block a user