summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/testp.lua24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/testp.lua b/test/testp.lua
index 1ab5304..7c4bf48 100644
--- a/test/testp.lua
+++ b/test/testp.lua
@@ -423,30 +423,30 @@ do -- numbers
     else
         -- integers
         assert(table.remove(state, 1) == luatokens.tokens.TK_INT)
-        assert(table.remove(state, 1) == 3)
+        assert(table.remove(state, 1) == "3")
         assert(table.remove(state, 1) == luatokens.tokens.TK_INT)
-        assert(table.remove(state, 1) == 345)
+        assert(table.remove(state, 1) == "345")
         assert(table.remove(state, 1) == luatokens.tokens.TK_INT)
-        assert(table.remove(state, 1) == 0xff)
+        assert(table.remove(state, 1) == "0xff")
         assert(table.remove(state, 1) == luatokens.tokens.TK_INT)
-        assert(table.remove(state, 1) == 0xBEBADA)
+        assert(table.remove(state, 1) == "0xBEBADA")
         -- floats
         assert(table.remove(state, 1) == luatokens.tokens.TK_FLT)
-        assert(table.remove(state, 1) == 3.0)
+        assert(table.remove(state, 1) == "3.0")
         assert(table.remove(state, 1) == luatokens.tokens.TK_FLT)
-        assert(table.remove(state, 1) == 3.1416)
+        assert(table.remove(state, 1) == "3.1416")
         assert(table.remove(state, 1) == luatokens.tokens.TK_FLT)
-        assert(table.remove(state, 1) == 314.16e-2)
+        assert(table.remove(state, 1) == "314.16e-2")
         assert(table.remove(state, 1) == luatokens.tokens.TK_FLT)
-        assert(table.remove(state, 1) == 0.31416E1)
+        assert(table.remove(state, 1) == "0.31416E1")
         assert(table.remove(state, 1) == luatokens.tokens.TK_FLT)
-        assert(table.remove(state, 1) == 34e1)
+        assert(table.remove(state, 1) == "34e1")
         assert(table.remove(state, 1) == luatokens.tokens.TK_FLT)
-        assert(table.remove(state, 1) == 0.1171875)
+        assert(table.remove(state, 1) == "0x0.1E")
         assert(table.remove(state, 1) == luatokens.tokens.TK_FLT)
-        assert(table.remove(state, 1) == 162.1875)
+        assert(table.remove(state, 1) == "0xA23p-4")
         assert(table.remove(state, 1) == luatokens.tokens.TK_FLT)
-        assert(table.remove(state, 1) == math.pi)
+        assert(table.remove(state, 1) == "0X1.921FB54442D18P+1")
         assert(table.remove(state, 1) == nil)
         assert(state.line == 3)
     end