aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/test/pipe_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--spec/outputs/test/pipe_spec.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/outputs/test/pipe_spec.lua b/spec/outputs/test/pipe_spec.lua
new file mode 100644
index 0000000..3d797ed
--- /dev/null
+++ b/spec/outputs/test/pipe_spec.lua
@@ -0,0 +1,13 @@
1return describe("pipe", function()
2 return it("pipes through functions", function()
3 local f
4 f = function(x)
5 return x + 1
6 end
7 local g
8 g = function(x)
9 return x * 2
10 end
11 return assert.same((g(f(3))), 8)
12 end)
13end)