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
Kim Alvefur <zash@zash.se> [Sun, 09 Oct 2022 15:24:26 +0200] rev 12761
util.jsonschema: Ignore some further test cases for URI references
Full-URI references are not implemented
Kim Alvefur <zash@zash.se> [Sun, 09 Oct 2022 14:58:07 +0200] rev 12760
util.jsonschema: Sort test cases to skip
Piped trough `sort -g`
Matthew Wild <mwild1@gmail.com> [Sat, 08 Oct 2022 23:55:22 +0100] rev 12759
util.datetime: Add some missing test cases
You guessed it, mutation testing.
Matthew Wild <mwild1@gmail.com> [Sat, 08 Oct 2022 20:39:14 +0100] rev 12758
util.roles: Fix tests to use autogenerated role id