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
James Roseborough
ecf56c157c
extend vm test
2008-04-18 18:26:25 +00:00
James Roseborough
882daa5d53
improve portability of test
2008-04-18 14:46:09 +00:00
James Roseborough
99720c9d2a
Remove race condition from weak table test
2008-04-18 14:45:49 +00:00
James Roseborough
3ccfa61076
Add test for replace bug
2008-04-18 14:45:32 +00:00
James Roseborough
79734ab679
Fix weak tables, improve unit test
2008-04-11 13:44:39 +00:00
James Roseborough
89dd1594b4
Improved weak table implementation
2008-04-11 01:00:18 +00:00
James Roseborough
ddf9acc506
improve table tests.
2008-04-11 00:08:19 +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
Ian Farmer
1672e73c40
Change LuaC to read bytes instead of chars.
...
This fixes some of the test cases by avoiding a lossy round-trip conversion
from bytes presumed to be, but might not be, UTF-8 encoded characters, and
then back to bytes. All of the compiler test cases now pass.
2008-02-13 08:02:17 +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
Ian Farmer
4fa417bdd9
Fix a bug with table resizing. Includes junit test case.
2008-01-23 01:21:54 +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
James Roseborough
8570761928
Make utf-8 conversion more robust to bad input.
2008-01-14 23:11:09 +00:00
Ian Farmer
2461b46908
Fix equality test for userdata. Includes improved test7.lua.
2008-01-11 07:56:42 +00:00
Shu Lei
9f9f31b969
Changes made for the following:
...
1) Platform.java stays as abstract class with, but default implementation is removed. Stays in org.luaj.vm package
2) org.luaj.platform package is created to hold concrete Platform implementations
3) Platform.newLuaState() method is introduced to instantiate the LuaState. Other constructors are privatized.
4) Following Platform implementations are created:
J2sePlatform
J2meMidp20Cldc11Platform
J2meMidp10Cldc10Platform
5) All clients of luaj-vm are changed to include startup code that looks something like this:
Platform.setInstance( new J2meMidp20Cldc11Platform() );
LuaState state = Platform.getInstance().newLuaState();
2007-12-19 21:44:15 +00:00
James Roseborough
bcf7dd1c66
Add tests for argument type checking on standard library functions.
2007-12-19 06:41:00 +00:00
Shu Lei
407d830582
1. code clean and added documentation for debugging protocol
...
2. upgrade to version 0.14 since I trimmed the debug message types
2007-12-17 19:42:02 +00:00