summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2019-04-09 16:37:54 -0300
committerSoniEx2 <endermoneymod@gmail.com>2019-04-09 16:37:54 -0300
commit886df79e9f8f76a3a166429bac87cb45f77fefa4 (patch)
tree4e101b24520f52ae7195ebe3d294afc6d3da160b
parentb352a06fa37fb48edcd4b2ab0e73d1e66dd4d2a6 (diff)
Tests pass in Lua 5.1/5.2 now too
-rw-r--r--test.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/test.lua b/test.lua
index 5a1bd4d..9ad6aa0 100644
--- a/test.lua
+++ b/test.lua
@@ -442,11 +442,11 @@ do -- numbers
         assert(table.remove(state, 1) == luatokens.tokens.TK_FLT)
         assert(table.remove(state, 1) == 34e1)
         assert(table.remove(state, 1) == luatokens.tokens.TK_FLT)
-        assert(table.remove(state, 1) == 0x0.1E)
+        assert(table.remove(state, 1) == 0.1171875)
         assert(table.remove(state, 1) == luatokens.tokens.TK_FLT)
-        assert(table.remove(state, 1) == 0xA23p-4)
+        assert(table.remove(state, 1) == 162.1875)
         assert(table.remove(state, 1) == luatokens.tokens.TK_FLT)
-        assert(table.remove(state, 1) == 0x1.921FB54442D18P+1)
+        assert(table.remove(state, 1) == math.pi)
         assert(table.remove(state, 1) == nil)
         assert(state.line == 3)
     end