util.interpolation: Add commented test case for passing nil to filter
authorKim Alvefur <zash@zash.se>
Sun, 17 Nov 2019 15:32:28 +0100
changeset 10417 604096ce2f82
parent 10416 b788b5257945
child 10418 51ebfdeccad7
util.interpolation: Add commented test case for passing nil to filter
spec/util_interpolation_spec.lua
--- a/spec/util_interpolation_spec.lua	Sun Nov 17 15:06:22 2019 +0100
+++ b/spec/util_interpolation_spec.lua	Sun Nov 17 15:32:28 2019 +0100
@@ -41,6 +41,7 @@
 		assert.equal(expect3, render(template, { name = "you" }));
 		assert.equal(expect_array, render(template_array, { foo = { "Hello", "World" } }));
 		assert.equal(expect_func_pipe, render(template_func_pipe, { foo = { "c", "a", "d", "b", } }));
+		-- assert.equal("", render(template_func_pipe, { foo = nil })); -- FIXME
 		assert.equal(expect_map, render(template_map, { foo = { foo = "bar" } }));
 	end);
 end);