aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/test/pipe_spec.lua
blob: 3d797ed904e0a1e6479d068438e633b8816548c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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)