diff options
| author | Li Jin <dragon-fly@qq.com> | 2026-01-22 15:03:12 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2026-01-22 15:03:12 +0800 |
| commit | f1454bbbd13a71da2005ff789cde2da0e9eb81f6 (patch) | |
| tree | 37131187f4218dd3ebec049101c28a161e7ca289 /spec/inputs/test/pipe_spec.yue | |
| parent | 604a8e5e53cdc7391a502fcabf07e8f1cc2a778c (diff) | |
| download | yuescript-f1454bbbd13a71da2005ff789cde2da0e9eb81f6.tar.gz yuescript-f1454bbbd13a71da2005ff789cde2da0e9eb81f6.tar.bz2 yuescript-f1454bbbd13a71da2005ff789cde2da0e9eb81f6.zip | |
Diffstat (limited to 'spec/inputs/test/pipe_spec.yue')
| -rw-r--r-- | spec/inputs/test/pipe_spec.yue | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/inputs/test/pipe_spec.yue b/spec/inputs/test/pipe_spec.yue new file mode 100644 index 0000000..58d48aa --- /dev/null +++ b/spec/inputs/test/pipe_spec.yue | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | describe "pipe", -> | ||
| 2 | it "pipes through functions", -> | ||
| 3 | f = (x)-> x + 1 | ||
| 4 | g = (x)-> x * 2 | ||
| 5 | assert.same (3 |> f |> g), 8 | ||
