Changeset

10413:604096ce2f82

util.interpolation: Add commented test case for passing nil to filter
author Kim Alvefur <zash@zash.se>
date Sun, 17 Nov 2019 15:32:28 +0100
parents 10412:b788b5257945
children 10414:51ebfdeccad7
files spec/util_interpolation_spec.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);