Commit Graph

117 Commits

Author SHA1 Message Date
Ian Farmer
bf90c74582 Fix tonumber() to match standard Lua's behavior more closely. 2008-10-10 23:37:47 +00:00
James Roseborough
9c19535631 Throw error when attempting to set a table value with a nil key 2008-09-19 17:57:03 +00:00
Ian Farmer
a0b1aef0b1 0.52: Small fixes for closer conformance with regular Lua. 2008-09-04 17:24:57 +00:00
James Roseborough
9f9d8872db Add misc table tests. 2008-08-07 21:10:23 +00:00
James Roseborough
8f5c27fa10 Checkpoint floating point format tests. 2008-08-07 18:30:28 +00:00
Ian Farmer
28f349a6fa Add partial implementation of string.format.
Not yet implemented:
(1) '#' flag (use alternate format)
(2) Floating point formats

2 digit widths and precisions are not yet tested.
2008-07-24 06:38:35 +00:00
James Roseborough
1170b5822f Fix coroutine error handling. 2008-07-24 03:13:50 +00:00
James Roseborough
4fcb2b1796 Fix weak table creation, processing 2008-07-24 02:47:35 +00:00
James Roseborough
022202e578 Improve argument type checking. 2008-07-24 01:28:52 +00:00
James Roseborough
45e60c4b21 Improve argument type checking. 2008-07-23 23:52:20 +00:00
James Roseborough
5da65f7d41 Add test for combination of print() and tostring(), test case when tostring is changed in global environment. 2008-07-23 21:08:09 +00:00
James Roseborough
989164405d improve isolation of setfenv test. 2008-07-23 15:54:05 +00:00
James Roseborough
69135233d5 improve strlib test. 2008-07-23 14:11:56 +00:00
James Roseborough
a217f8a202 Pre-expand tables on SETLIST 2008-07-23 14:07:25 +00:00
James Roseborough
887658ae7b Fix tests with expected output 2008-07-23 13:47:15 +00:00
James Roseborough
81223754f2 Improve compatibility tests. 2008-07-22 23:52:02 +00:00
James Roseborough
1885f9b618 Fix table library type checking. 2008-07-17 22:44:28 +00:00
James Roseborough
754fe22b18 Update test to work with fixed gsub behavior 2008-07-14 20:14:44 +00:00
James Roseborough
a4197fefd0 Add gsub tests 2008-07-14 20:14:17 +00:00
James Roseborough
59b75d5ce0 fix tail call return value processing 2008-06-14 14:40:49 +00:00
James Roseborough
3906bb9968 Add tests for some uncovered functions. 2008-06-04 15:33:21 +00:00
Ian Farmer
60323962f7 Fix string.len (includes new tests.) 2008-06-02 05:53:32 +00:00
Ian Farmer
ef2c087c1b Number fixes.
(1) Change how LDouble computes hashCode to match standard Lua.
(2) Change how toJavaString deals with NaN, infinity, and -0.
(3) Move 0 * -2 case to end of mathlib test case so that problematic tests
    are towards the end.
2008-06-02 04:18:42 +00:00
James Roseborough
497f3d8100 add tests for length 2008-04-22 05:22:34 +00:00
James Roseborough
bba4cf9a99 Reconcile C & Java typechecking on table.concat() and string .. concat operator 2008-04-22 04:52:24 +00:00
James Roseborough
882daa5d53 improve portability of test 2008-04-18 14:46:09 +00:00
James Roseborough
79734ab679 Fix weak tables, improve unit test 2008-04-11 13:44:39 +00:00
James Roseborough
09771147cf Improve unit test for "next()" function 2008-04-09 12:46:05 +00:00
James Roseborough
09aa37a837 Weak table implementation. 2008-04-08 21:55:16 +00:00
James Roseborough
720c6027d6 Add unit test for weak tables. 2008-04-08 15:49:40 +00:00
James Roseborough
35ed9dca3c Fix sorting with custom comparator, and add unit tests to regress 2008-04-03 03:58:15 +00:00
James Roseborough
9c4bbf670f Fix for case when more than 127 local variables are declared in one function 2008-02-08 21:54:53 +00:00
Ian Farmer
cb6ce20dde New failing test case involving do/end blocks and upvalues. 2008-02-07 18:56:17 +00:00
James Roseborough
7679040493 Fix for table initializers greater than 50 elements. 2008-02-06 19:00:23 +00:00
James Roseborough
8e06d7aff9 Add test case with many local variables. 2008-02-05 19:19:39 +00:00
James Roseborough
e126010a36 Add test for huge, sparse table initialization 2008-02-05 19:13:48 +00:00
James Roseborough
f55a393fb8 Fix environment propogation from function to function. 2008-01-17 00:59:16 +00:00
Ian Farmer
1cddbe97a2 Add new test case for stack handling. 2008-01-16 06:07:59 +00:00
Ian Farmer
2461b46908 Fix equality test for userdata. Includes improved test7.lua. 2008-01-11 07:56:42 +00:00
James Roseborough
bcf7dd1c66 Add tests for argument type checking on standard library functions. 2007-12-19 06:41:00 +00:00
James Roseborough
d80e29a1ff More tests for module. 2007-12-13 22:12:21 +00:00
James Roseborough
9d728af4a6 Add simple loadstring test. 2007-12-13 01:43:21 +00:00
James Roseborough
78b231353f quote results. 2007-12-13 01:04:08 +00:00
James Roseborough
b8b65767b5 More test cases for string.sub() 2007-12-13 01:03:02 +00:00
Ian Farmer
60cc93d64c Correctly remove values stored in the array-part of a table. 2007-12-12 19:19:03 +00:00
James Roseborough
6569563ddc Implement math.pow() for all platforms, add unit tests for basic math operations. 2007-12-11 19:47:38 +00:00
James Roseborough
ab8fc4883e Implement foreach(), foreachi() 2007-12-11 01:18:04 +00:00
James Roseborough
1923d8e6a0 Add math.random() and math.randomseed() 2007-12-08 01:42:51 +00:00
James Roseborough
0f3fe0452d Add table.getn() for compatibility 2007-12-08 01:20:30 +00:00
James Roseborough
9cf85debad Add test cases for loadfile, dofile on bad filenames. 2007-12-07 18:43:34 +00:00