diff options
author | Fedja Beader <fedja@protonmail.ch> | 2025-03-23 23:04:57 +0100 |
---|---|---|
committer | Jesusalva Jesusalva <jesusalva@tmw2.org> | 2025-05-03 14:41:08 +0000 |
commit | bc1366890eb62e127e4bed0fb6a154a751b2e9e0 (patch) | |
tree | 11fd143386b8e2c72dc34c958609b195ce3fc94b | |
parent | 6b41e4b8d247aef07bea9b5826a84db9946770b9 (diff) | |
download | serverdata-simplify_logarithm.tar.gz serverdata-simplify_logarithm.tar.bz2 serverdata-simplify_logarithm.tar.xz serverdata-simplify_logarithm.zip |
Add some testcases for log2, toosimplify_logarithm
-rw-r--r-- | npc/dev/test.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/npc/dev/test.txt b/npc/dev/test.txt index 268639102..b430dd57d 100644 --- a/npc/dev/test.txt +++ b/npc/dev/test.txt @@ -629,6 +629,11 @@ function script HerculesSelfTestHelper { callsub(OnCheck, "array shrink", .@x[1], 0); callsub(OnCheck, "array shrink and getarraysize", getarraysize(.@x), 0); + // log2 + callsub(OnCheck, "log2(0)", log2(0), -1); + callsub(OnCheck, "log2(1)", log2(1), 0); + callsub(OnCheck, "log2(3<<29)", log2(0x60000000), 30); + // min and max callsub(OnCheck, "min()", min(5, -10, 8, 3, -2, 1000), -10); callsub(OnCheck, "max()", max(5, -10, 8, 3, -2, 1000), 1000); |