overload-01.testie
来自「COPE the first practical network coding 」· TESTIE 代码 · 共 46 行
TESTIE
46 行
%infoTest simple overloadings%scriptclick -e 'elementclass Foo { $a, $b | input -> Print(1) -> output|| $a, __REST__ $b | input -> Print(2) -> output|| $a, TWO $b, __REST__ $c | input -> Print(3) -> output}InfiniteSource(DATA "", LIMIT 1, STOP true) -> Foo(A) -> f::Foo(A, TWO B)elementclass Foo { $a, $b | input -> Print(4) -> output|| ...}f -> Foo(A, B) -> Foo(A, B, C) -> Discard'click-flatten -e 'elementclass Foo { $a, $b | input -> Print(1) -> output|| $a, __REST__ $b | input -> Print(2) -> output|| $a, TWO $b, __REST__ $c | input -> Print(3) -> output}InfiniteSource(DATA "", LIMIT 1, STOP true) -> Foo(A) -> f::Foo(A, TWO B)elementclass Foo { $a, $b | input -> Print(4) -> output|| ...}f -> Foo(A, B) -> Foo(A, B, C) -> Discard' | click%expect stderr2: 0 |1: 0 |4: 0 |2: 0 |2: 0 |1: 0 |4: 0 |2: 0 |
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?