Adrian Siekierka
ac261965a8
fix compilation, tests
2022-09-04 02:06:08 +02:00
Adrian Siekierka
342d940b5e
Merge remote-tracking branch 'farmboy0/master'
2022-09-04 02:01:30 +02:00
Adrian Siekierka
a3507cf771
Merge remote-tracking branch 'src/master'
2022-09-04 01:43:37 +02:00
Enrico Horn
0775cc6c59
Create sources jars during the build
2021-07-23 17:47:14 +02:00
Enrico Horn
f87e3726a4
Update build information in the README
2021-07-22 23:27:14 +02:00
Enrico Horn
a4d95841e4
Create coverage report during the build
2021-07-22 23:23:34 +02:00
Enrico Horn
c8c2c29d62
Remove ant build files
2021-07-22 22:51:02 +02:00
Enrico Horn
67962d4cc3
Deactivate a few more compatibility tests for now
2021-07-22 22:46:58 +02:00
Enrico Horn
9a65948e26
Rework and complete OsLib's date formatting
2021-07-22 22:46:58 +02:00
Enrico Horn
66130964c6
Convert mathlib.modf result to number
2021-07-22 22:29:09 +02:00
Enrico Horn
abe14ca995
Disable debuglib tests for now
...
Too many failing tests that need to be fixed first
2021-07-22 22:29:09 +02:00
Enrico Horn
30a3a472bc
Luajit crashes when closing a closed file
2021-07-22 22:29:08 +02:00
Enrico Horn
e87d9ceee4
Disabled a few more tests for now
2021-07-22 22:29:07 +02:00
Enrico Horn
3e9ae5c524
Luajit doesnt implement table.unpack in the current stable version
2021-07-22 22:29:03 +02:00
Enrico Horn
ddba10c180
Bring debuglib.getlocal Implementation closer to native
2021-07-22 22:29:02 +02:00
Enrico Horn
39e9be0a2d
Deactivate a debuglib.getlocal error test for now
2021-07-22 22:29:02 +02:00
Enrico Horn
b1322640ca
Always initialize a CallFrame's stack
2021-07-22 22:29:01 +02:00
Enrico Horn
99bd46876e
Report errors about closures as function expected
2021-07-22 22:29:01 +02:00
Enrico Horn
23ae7cdc06
Fix order of argument checks in debug.upvaluejoin
2021-07-22 22:29:00 +02:00
Enrico Horn
942dc4afa3
More debug.upvaluejoin error tests
2021-07-22 22:29:00 +02:00
Enrico Horn
11ec746838
Fix order of argument checks in debug.upvalueid
2021-07-22 22:28:59 +02:00
Enrico Horn
b8b951b7c9
Fix order of argument checks in debug.setupvalue
2021-07-22 22:28:59 +02:00
Enrico Horn
1f9a874979
More setupvalue error tests
2021-07-22 22:28:58 +02:00
Enrico Horn
b121b65151
Handle rhs of zero for operation fmod
2021-07-22 00:06:12 +02:00
Enrico Horn
5851e6994a
Lua also returns a negative NaN string
2021-07-22 00:06:12 +02:00
Enrico Horn
5984ec6097
Remove test files created during iolib tests
2021-07-22 00:06:12 +02:00
Enrico Horn
4802623aa3
Only check return type in xpcall pass tests
...
The error message is more specific with luaj
2021-07-22 00:06:11 +02:00
Enrico Horn
2fdcf5e2ac
Disable string.dump pass checks for now
2021-07-22 00:06:11 +02:00
Enrico Horn
560a4694e4
Fix string.gsub behaviour with negative n
2021-07-22 00:06:11 +02:00
Enrico Horn
6b9dece367
Fix mathlib min, max and atan2 behaviour
2021-07-22 00:06:11 +02:00
Enrico Horn
179062493d
Implement package.seeall
2021-07-22 00:06:11 +02:00
Enrico Horn
f81bc1e174
Make some errors compatible with native lua
2021-07-22 00:06:11 +02:00
Enrico Horn
bf23883492
Define clean up steps and clean up code
2021-07-22 00:06:11 +02:00
Enrico Horn
5465eff841
Update test result files in a platform dependant manner from native lua
2021-07-22 00:06:11 +02:00
Enrico Horn
ddc7531845
Remove invalid lua5.2 OOB calls from tablelib.lua
2021-07-22 00:06:11 +02:00
Enrico Horn
58a4dec882
Update errors tests for lua 5.2
2021-07-22 00:06:11 +02:00
Enrico Horn
f91cc9a509
Scripts to create result files from native lua
2021-07-22 00:06:11 +02:00
Enrico Horn
9792fcb018
Cleanup Tests with JUnit5 and move to different modules
2021-07-11 23:13:57 +02:00
Enrico Horn
1a6de4a227
Remove temprory test files and ignore them
2021-07-11 23:00:02 +02:00
Enrico Horn
1833c57d4d
Extract luaj3.0-tests.zip to luaj-test/src/test/resources and delete it
2021-07-11 22:59:08 +02:00
Enrico Horn
e7e6190f9c
Add formatter definition and format code
2021-07-03 22:23:49 +02:00
Enrico Horn
3c266bcc98
Move Lua5x.jj to lua-jse and customize package name
2021-07-03 22:19:30 +02:00
Enrico Horn
d2a92c07d3
Convert all line endings to Unix
2021-07-03 22:15:19 +02:00
Enrico Horn
a58147ddfa
Move sources into maven modules
2021-03-11 22:07:08 +01:00
Enrico Horn
74e5ef6f36
Ignore eclipse project files
2021-03-07 01:39:37 +01:00
Enrico Horn
a9d475bbbf
Remove eclipse project files
2021-03-05 21:26:41 +01:00
asie
a071b04b8f
remove undesirable import
2019-09-03 08:33:28 +02:00
asie
11b29f92c1
fix string.format not converting non-strings for %s (requires __tostring fix)
2019-08-11 13:47:25 +02:00
gamax92
c666a507ab
Support 4 byte UTF-8 sequences
...
Fixes lengthAsUtf8, encodeToUtf8, and isValidUtf8 to support UTF-8's
4-byte sequences or UTF-16's surrogate pairs properly.
Invalid surrogate pairs are converted to '?' as Java's converter does
2019-08-11 13:05:54 +02:00
gamax92
5026b5ac1e
string.format fixes
...
Fix string.format's floating point implementation
Disable space if explicitPlus is set
Disable leftAdjust and zeroPad if no width is specified
precision gets set to zero if only a dot is specified
Add support for %a/A, Lua can use these and Java happens to support it
2019-08-11 12:50:29 +02:00
asie
6ba28727d2
move doubleToRawLongBits (not present on JME) to JSE class
2019-08-11 12:49:56 +02:00
gamax92
0707e71c6c
Support __pairs and __ipairs
...
Added PAIRS and IPAIRS constants to LuaValue
Merged pairs and ipairs into one class with a dynamic constructor, this
is similar to Lua's pairsmeta function.
Check for and call it's specific metamethod if it's available.
2019-08-11 12:14:21 +02:00
gamax92
43f937470f
Fix classes based on LibFunction giving "value" for their error message.
2019-08-11 12:11:40 +02:00
gamax92
5d3f2eb72c
LuaClosure: Add the colon after line numbers to error messages
2019-08-11 12:11:31 +02:00
gamax92
244eb4b1a1
StringLib: Support seperators in string.rep
2019-08-11 12:07:47 +02:00
gamax92
626664a0fe
BaseLib: fix handling of __tostring
2019-08-11 12:05:48 +02:00
gamax92
2bccb4670e
LuaValue: add 0x to tojstring() to match Lua
2019-08-11 12:01:51 +02:00
gamax92
89acb5bcb5
LuaString: port strx2number for accurate double scanning, handle plus signs when converting strings to numbers
2019-08-11 11:59:49 +02:00
gamax92
c69585332b
LexState: rename TK_EOS and <eos> to TK_EOF and <eof> to match Lua
2019-08-11 11:55:42 +02:00
gamax92
c9fa0f27c7
LuaValue, FuncState: correct error messages to match Lua
2019-08-11 11:50:42 +02:00
asie
af4cfe5e00
LuaDouble: handle negative zero, negative NaN
2019-08-11 11:47:51 +02:00