diff options
author | Kim Alvefur <zash@zash.se> | 2018-11-28 20:36:53 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-11-28 20:36:53 +0100 |
commit | d007771f8da390816640fa3839b29dcbaa5862d2 (patch) | |
tree | dea88bb48f743f7cb1c2cc86cb247349a7e6846b /spec/util_format_spec.lua | |
parent | d84d0a52ce3d37a4182b0776b58657610a99ebb5 (diff) | |
download | prosody-d007771f8da390816640fa3839b29dcbaa5862d2.tar.gz prosody-d007771f8da390816640fa3839b29dcbaa5862d2.zip |
util.format: Tweak how nil values are handled
Because [<nil>] seems exsessive
Diffstat (limited to 'spec/util_format_spec.lua')
-rw-r--r-- | spec/util_format_spec.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/util_format_spec.lua b/spec/util_format_spec.lua index 7e6a0c6e..8a2e9312 100644 --- a/spec/util_format_spec.lua +++ b/spec/util_format_spec.lua @@ -5,6 +5,8 @@ describe("util.format", function() it("should work", function() assert.equal("hello", format("%s", "hello")); assert.equal("<nil>", format("%s")); + assert.equal("<nil>", format("%d")); + assert.equal("<nil>", format("%q")); assert.equal(" [<nil>]", format("", nil)); assert.equal("true", format("%s", true)); assert.equal("[true]", format("%d", true)); |