Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lua-nucleo/test/cases/0290-tstr: fix compatibility with LuaJIT 2 #16

Closed
rafis opened this issue Jun 30, 2013 · 0 comments
Closed

lua-nucleo/test/cases/0290-tstr: fix compatibility with LuaJIT 2 #16

rafis opened this issue Jun 30, 2013 · 0 comments

Comments

@rafis
Copy link
Member

rafis commented Jun 30, 2013

Running test under LuaJIT 2.0.2 gives error:

Suite test  tstr_cat-string
lua-nucleo/ensure.lua:216: ensure_strequals: tstr zero symbol:
different at byte 12 (line 1, offset 1):

  expected   |embedded\000zero"|
vs. actual   |embedded\0zero"|

expected has 2 extra characters
actual:
"embedded\0zero"
expected:
"embedded\000zero"
stack traceback:
    [C]: in function 'error'
    lua-nucleo/ensure.lua:216: in function 'ensure_strequals'
    test/cases/0290-tstr.lua:64: in function 'check_ok'
    test/cases/0290-tstr.lua:73: in function 'check_str_ok'
    test/cases/0290-tstr.lua:88: in function 'fn'
    lua-nucleo/suite.lua:167: in function 
    [C]: in function 'xpcall'
    lua-nucleo/suite.lua:167: in function 'run'
    lua-nucleo/suite.lua:556: in function 
    [C]: in function 'xpcall'
    lua-nucleo/suite.lua:551: in function 'run_test'
    lua-nucleo/suite.lua:600: in function 'run_tests'
    test/test.lua:134: in main chunk
    [C]: at 0x00404980
ERR 

#2377

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant