# HG changeset patch # User Kim Alvefur # Date 1574001148 -3600 # Node ID 604096ce2f82fca9dc1d965568ee291e742fad9c # Parent b788b52579452460d7890328a70955a4f8c84687 util.interpolation: Add commented test case for passing nil to filter diff -r b788b5257945 -r 604096ce2f82 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);