From fd62eaa814609835c87df5f24633760552ce64ea Mon Sep 17 00:00:00 2001 From: pommicket Date: Tue, 9 Sep 2025 11:42:42 -0400 Subject: Add interpretation tests for (u)int, disallow -2^63 as an int --- tests/interpretation/uint.pom | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 tests/interpretation/uint.pom (limited to 'tests/interpretation/uint.pom') diff --git a/tests/interpretation/uint.pom b/tests/interpretation/uint.pom new file mode 100644 index 0000000..be15211 --- /dev/null +++ b/tests/interpretation/uint.pom @@ -0,0 +1,38 @@ +[good] + +three.a = 3 +three.b = 0x3 + +quote_three.a = "3" +quote_three.b = `3` + +plus_three.a = +3 +plus_three.b = +0x3 + +zero.a = 0 +zero.b = 0x0000000000000000000000000000 + +sign_zero.a = +0 +sign_zero.b = 0 + +hex.a = 0x0123fF +hex.b = 74751 + +hex2.a = 0Xfade +hex2.b = 64222 + +largest.a = 9223372036854775807 +largest.b = 0x7fffffffffffffff + +[bad] +space_three = " 3" +leading_zero = 03 +negative = -3 +negative_hex = -0x3 +trailing_dec = 35a +trailing_hex = 0x35g +decimal = 3.0 +multi_sign = ++3 +too_large = 9223372036854775808 +too_large_hex = 0x8000000000000000 +negative_zero = -0 -- cgit v1.2.3