Commit Graph

199 Commits

Author SHA1 Message Date
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
ef48f8cd12 Implement string.dump 2008-07-22 22:32:28 +00:00
James Roseborough
eae183e334 Refactor math support to build for cldc 1.1. 2008-07-22 17:50:31 +00:00
James Roseborough
9113435e57 Argument type checking on basic lib 2008-07-22 14:56:13 +00:00
James Roseborough
289a0df9f5 Add xpcall. 2008-07-22 01:20:25 +00:00
James Roseborough
80d8fccd1a Add tests for J2me platform math. 2008-07-21 23:01:59 +00:00
James Roseborough
6642b38f91 Refactor math support to provide more consistent and complete math library coverage 2008-07-21 22:12:06 +00:00
James Roseborough
0c02382673 Improve argument type checkign on string libraries. 2008-07-18 01:22:00 +00:00
James Roseborough
1885f9b618 Fix table library type checking. 2008-07-17 22:44:28 +00:00
James Roseborough
06908c3b60 Improve argument type checking. 2008-07-17 18:49:43 +00:00
James Roseborough
a18c16dabb Improve argument type check tests. 2008-07-17 01:23:33 +00:00
James Roseborough
02cffe8a58 Add math library argument type check tests. 2008-07-16 22:04:15 +00:00
James Roseborough
953daeb907 Add table argument type check tests. 2008-07-16 20:04:44 +00:00
James Roseborough
ec3feacc30 Add tests for string library functions. 2008-07-16 17:38:28 +00:00
James Roseborough
8f209948f5 Add mocule argument type checking. 2008-07-15 23:58:15 +00:00
James Roseborough
07b9297adc Add coroutine library argument type check tests. 2008-07-15 22:13:12 +00:00
James Roseborough
bc279c7a9b Add argument type check tests for basic library 2008-07-15 21:51:42 +00:00
James Roseborough
33eca97351 Add argument type checks for basic library functions. 2008-07-15 18:35:38 +00:00
James Roseborough
5fcec48678 Add framework to test error messages and argument type checking. 2008-07-15 05:32:56 +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
a2f88b61bf Collect garbage before each weak table unit test. 2008-07-14 18:32:38 +00:00
James Roseborough
1eaaff04fa Improve performance unit test 2008-07-14 18:31:06 +00:00
James Roseborough
d2a201ad87 Add simple performance tests 2008-07-14 17:58:37 +00:00
James Roseborough
c9fc0327b1 Add tests for jit argument passing 2008-07-14 17:57:44 +00:00
James Roseborough
63bf210fc4 Add spot-check test on utf8 conversions. 2008-07-09 20:17:54 +00:00
James Roseborough
e486c062f8 Fix jit flow control 2008-07-03 16:33:09 +00:00
James Roseborough
f44de5cf17 Fix jit repeat-until 2008-07-03 14:51:27 +00:00
James Roseborough
8198f79a86 Capture output from jit tests and compare 2008-07-01 14:38:00 +00:00
James Roseborough
ad3b349432 Add basic jit tests. 2008-06-30 15:37:15 +00:00
James Roseborough
88770a3630 Add control flow extraction to jit compiler. 2008-06-29 18:34:22 +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
8d055862e0 Add version "Luaj ${version}" into _VERSION field at build time. 2008-05-19 17:18:10 +00:00
James Roseborough
d9c3f0ae15 Fix for loop (jit), make jist test use jit closures. 2008-05-18 19:24:09 +00:00
James Roseborough
039d79fe5f Simplified, extended jit implementation 2008-05-18 15:12:03 +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