path: root/tests/auto/other
diff options
authorEdward Welbourne <>2021-01-27 12:33:46 +0100
committerEdward Welbourne <>2022-01-18 16:23:56 +0100
commit755b0aa681c203e6677430180a9cc6d103650e15 (patch)
treeb24b8c43a5a18dad2ba9bbbb4aa26e09ef312852 /tests/auto/other
parentf2230ea1a6c83bade142eca0a696dc1e219d427f (diff)
Turn a condition into a lambda to save needless evaluation
The public suffix list scanner's utf8encode()'s main loop always worked out whether a character is a hex digit, even when it didn't need to know. Package the computation in a lambda and only test it when it is needed. Also assert non-empty input generates non-empty output. Change-Id: Iaf48aad382624e421cea9c9cdb8bba5fc47b1596 Reviewed-by: MÃ¥rten Nordheim <> Reviewed-by: Ievgenii Meshcheriakov <>
Diffstat (limited to 'tests/auto/other')
0 files changed, 0 insertions, 0 deletions