Matthew Wild <mwild1@gmail.com> [Tue, 11 Oct 2022 13:31:47 +0100] rev 12771
util.jid: Add missing test cases
(98% mutant score, single remaining mutant is a string.sub equivalent)
Matthew Wild <mwild1@gmail.com> [Tue, 11 Oct 2022 13:12:26 +0100] rev 12770
.luacheckrc: Add test_mutants.sh.lua to the ignore list
Matthew Wild <mwild1@gmail.com> [Tue, 11 Oct 2022 11:53:48 +0100] rev 12769
tools: Add initial mutation testing script
Matthew Wild <mwild1@gmail.com> [Tue, 11 Oct 2022 11:38:32 +0100] rev 12768
util.dbuffer: Add a bunch of missing test cases
Found via mutation testing.
Matthew Wild <mwild1@gmail.com> [Tue, 11 Oct 2022 11:37:55 +0100] rev 12767
util.dbuffer: Add efficient shortcuts for discard() in certain cases
If the buffer is already empty, nothing to do. If we're throwing away the
whole buffer, we can just empty it and avoid read_chunk() (which in turn
may collapse()). These shortcuts are much more efficient.
Matthew Wild <mwild1@gmail.com> [Tue, 11 Oct 2022 11:34:47 +0100] rev 12766
util.dbuffer: Remove redundant code (read_chunk() cannot fail at this point)
Kim Alvefur <zash@zash.se> [Sun, 09 Oct 2022 15:50:25 +0200] rev 12765
Merge 0.12->trunk
Kim Alvefur <zash@zash.se> [Sun, 09 Oct 2022 15:42:25 +0200] rev 12764
util.jsonschema: Use same integer/float logic on Lua 5.2 and 5.3
Fixes test case type.json:0:1 covering treatment of 1.0 as an integer
according to the JSON definition
Kim Alvefur <zash@zash.se> [Sun, 09 Oct 2022 15:38:36 +0200] rev 12763
util.jsonschema: Fix Lua 5.2 integer compat
math.type() is unavailable before Lua 5.3 so this should use the compat
function added at the top
Kim Alvefur <zash@zash.se> [Sun, 09 Oct 2022 15:24:30 +0200] rev 12762
util.jsonschema: Ignore test case for JavaScript specific detail
Also touching on how arrays are indistinguishable from tables in Lua