From f1454bbbd13a71da2005ff789cde2da0e9eb81f6 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Thu, 22 Jan 2026 15:03:12 +0800 Subject: Adding tests. --- spec/outputs/test/pipe_spec.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 spec/outputs/test/pipe_spec.lua (limited to 'spec/outputs/test/pipe_spec.lua') 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 @@ +return describe("pipe", function() + return it("pipes through functions", function() + local f + f = function(x) + return x + 1 + end + local g + g = function(x) + return x * 2 + end + return assert.same((g(f(3))), 8) + end) +end) -- cgit v1.2.3-55-g6feb