community/lua-toml: testsuite failure with luajit
Seems like lua-toml testsuite fails with recent luajit. Not sure what the proper fix is.
>>> lua-toml: Testing on luajit
--------++----------+----------------++---
5 successes / 37 failures / 0 errors / 0 pending : 0.03702 seconds
Failure -> spec/array_spec.lua @ 6
array parsing empty
spec/array_spec.lua:12: Expected objects to be the same.
Passed in:
(table: 0x41f87d48) {
[thevoid ] = {
[1] = {
[1] = { ... more } } } }
Expected:
(table: 0x41f88618) {
*[thevoid] = {
[1] = {
[1] = { ... more } } } }
Failure -> spec/array_spec.lua @ 15
array parsing no spaces
spec/array_spec.lua:21: Expected objects to be the same.
Passed in:
(table: 0x41f8e910) {
[ints ] = {
[1] = 1
[2] = 2
[3] = 3 } }
Expected:
(table: 0x41f8f028) {
*[ints] = {
[1] = 1
[2] = 2
[3] = 3 } }
Failure -> spec/array_spec.lua @ 24
array parsing heterogeneous
spec/array_spec.lua:32: Expected objects to be the same.
Passed in:
(table: 0x41f94d98) {
[mixed ] = {
[1] = {
[1] = 1
[2] = 2 }
[2] = {
[1] = 'a'
[2] = 'b' }
[3] = {
[1] = 1.1000000000000000888
[2] = 2.1000000000000000888 } } }
Expected:
(table: 0x41eee2b8) {
*[mixed] = {
[1] = {
[1] = 1
[2] = 2 }
[2] = {
[1] = 'a'
[2] = 'b' }
[3] = {
[1] = 1.1000000000000000888
[2] = 2.1000000000000000888 } } }
Failure -> spec/array_spec.lua @ 35
array parsing nested
spec/array_spec.lua:41: Expected objects to be the same.
Passed in:
(table: 0x41f9e280) {
[nest ] = {
[1] = {
[1] = 'a' }
[2] = {
[1] = 'b' } } }
Expected:
(table: 0x41f9ea78) {
*[nest] = {
[1] = {
[1] = 'a' }
[2] = {
[1] = 'b' } } }
Failure -> spec/array_spec.lua @ 44
array parsing array
spec/array_spec.lua:74: Expected objects to be the same.
Passed in:
(table: 0x41328a08) {
[dates ] = {
[1] = '1987-07-05T17:45:00Z'
[2] = '1979-05-27T07:32:00Z'
[3] = '2006-06-01T11:00:00Z' }
[floats ] = {
[1] = 1.1000000000000000888
[2] = 2.1000000000000000888
[3] = 3.1000000000000000888 }
[ints ] = {
[1] = 1
[2] = 2
[3] = 3 }
[strings ] = {
[1] = 'a'
[2] = 'b'
[3] = 'c' }
[tables ] = {
[1] = {
[ x ] = 1
[ y ] = 2
[ z ] = 3 }
[2] = {
[ x ] = 7
[ y ] = 8
[ z ] = 9 }
[3] = {
[ x ] = 2
[ y ] = 4
[ z ] = 8 } } }
Expected:
(table: 0x4132bad0) {
[dates] = {
[1] = '1987-07-05T17:45:00Z'
[2] = '1979-05-27T07:32:00Z'
[3] = '2006-06-01T11:00:00Z' }
[floats] = {
[1] = 1.1000000000000000888
[2] = 2.1000000000000000888
[3] = 3.1000000000000000888 }
*[ints] = {
[1] = 1
[2] = 2
[3] = 3 }
[strings] = {
[1] = 'a'
[2] = 'b'
[3] = 'c' }
[tables] = {
[1] = {
[x] = 1
[y] = 2
[z] = 3 }
[2] = {
[x] = 7
[y] = 8
[z] = 9 }
[3] = {
[x] = 2
[y] = 4
[z] = 8 } } }
Failure -> spec/bool_spec.lua @ 6
boolean parsing boolean
spec/bool_spec.lua:14: Expected objects to be the same.
Passed in:
(table: 0x40216ba0) {
[f ] = false
[t ] = true }
Expected:
(table: 0x40c445f8) {
[f] = false
*[t] = true }
Failure -> spec/comments_spec.lua @ 6
comments everywhere
spec/comments_spec.lua:38: Expected objects to be the same.
Passed in:
(table: 0x4020d9e0) {
*[group] = {
[ answer ] = 42
[more ] = {
[1] = 42
[2] = 42 } } }
Expected:
(table: 0x41330ed0) {
*[group] = {
[answer] = 42
*[more] = {
[1] = 42
[2] = 42 } } }
Failure -> spec/datetime_spec.lua @ 6
datetime parsing datetime
spec/datetime_spec.lua:12: Expected objects to be the same.
Passed in:
(table: 0x41ef62d0) {
[bestdayever ] = '1987-07-05T17:45:00Z' }
Expected:
(table: 0x406b0618) {
*[bestdayever] = '1987-07-05T17:45:00Z' }
Failure -> spec/example_spec.lua @ 6
example parsing example
spec/example_spec.lua:20: Expected objects to be the same.
Passed in:
(table: 0x4063cf80) {
[best-day-ever ] = '1987-07-05T17:45:00Z'
*[numtheory] = {
[boring ] = false
[perfection ] = {
[1] = 6
[2] = 28
[3] = 496 } } }
Expected:
(table: 0x40644cd8) {
[best-day-ever] = '1987-07-05T17:45:00Z'
*[numtheory] = {
*[boring] = false
[perfection] = {
[1] = 6
[2] = 28
[3] = 496 } } }
Failure -> spec/float_spec.lua @ 6
float parsing float
spec/float_spec.lua:16: Expected objects to be the same.
Passed in:
(table: 0x40b7f2e8) {
[negpi ] = -3.1400000000000001243
[pi ] = 3.1400000000000001243
[pluspi ] = 3.1400000000000001243 }
Expected:
(table: 0x40b7fe28) {
*[negpi] = -3.1400000000000001243
[pi] = 3.1400000000000001243
[pluspi] = 3.1400000000000001243 }
Failure -> spec/float_spec.lua @ 19
float parsing long
spec/float_spec.lua:27: Expected objects to be the same.
Passed in:
(table: 0x40b87540) {
[longpi ] = 3.141592653589793116
[neglongpi ] = -3.141592653589793116 }
Expected:
(table: 0x40b891e8) {
[longpi] = 3.141592653589793116
*[neglongpi] = -3.141592653589793116 }
Failure -> spec/float_spec.lua @ 30
float parsing exponent
spec/float_spec.lua:42: Expected objects to be the same.
Passed in:
(table: 0x4021c180) {
[exp1 ] = 4.9999999999999995806e+22
[exp2 ] = 1000000
[exp3 ] = -1
[exp4 ] = 6.6259999999999998385e-34 }
Expected:
(table: 0x4021dac0) {
[exp1] = 4.9999999999999995806e+22
[exp2] = 1000000
*[exp3] = -1
[exp4] = 6.6259999999999998385e-34 }
Failure -> spec/float_spec.lua @ 45
float parsing underscore
spec/float_spec.lua:51: Expected objects to be the same.
Passed in:
(table: 0x402237e8) {
[underscore ] = 9224617.4459910001606 }
Expected:
(table: 0x40224038) {
*[underscore] = 9224617.4459910001606 }
Failure -> spec/implicit-and-explicit_spec.lua @ 6
implicit and explicit groups
spec/implicit-and-explicit_spec.lua:19: Expected objects to be the same.
Passed in:
(table: 0x40236548) {
*[a] = {
*[b] = {
*[c] = { ... more } } } }
Expected:
(table: 0x408bcb00) {
*[a] = {
*[b] = {
*[c] = { ... more } } } }
Failure -> spec/implicit-and-explicit_spec.lua @ 22
implicit and explicit after
spec/implicit-and-explicit_spec.lua:39: Expected objects to be the same.
Passed in:
(table: 0x408c29c0) {
*[a] = {
[b] = {
[c] = { ... more } }
[better ] = 43 } }
Expected:
(table: 0x408c37a8) {
*[a] = {
[b] = {
[c] = { ... more } }
*[better] = 43 } }
Failure -> spec/implicit-and-explicit_spec.lua @ 42
implicit and explicit before
spec/implicit-and-explicit_spec.lua:60: Expected objects to be the same.
Passed in:
(table: 0x408c9690) {
*[a] = {
[b] = {
[c] = { ... more } }
[better ] = 43 } }
Expected:
(table: 0x408caa20) {
*[a] = {
[b] = {
[c] = { ... more } }
*[better] = 43 } }
Failure -> spec/integer_spec.lua @ 6
integer parsing integer
spec/integer_spec.lua:18: Expected objects to be the same.
Passed in:
(table: 0x40543d58) {
[answer ] = 42
[neganswer ] = -42
[posanswer ] = 42
[underscore ] = 1000 }
Expected:
(table: 0x405446c0) {
*[answer] = 42
[neganswer] = -42
[posanswer] = 42
[underscore] = 1000 }
Failure -> spec/integer_spec.lua @ 21
integer parsing long
spec/integer_spec.lua:32: Expected objects to be the same.
Passed in:
(table: 0x4054a300) {
[answer ] = 9007199254740992
[neganswer ] = -9007199254740991 }
Expected:
(table: 0x4054beb0) {
[answer] = 9007199254740992
*[neganswer] = -9007199254740991 }
Failure -> spec/key_spec.lua @ 15
key parsing bare number
spec/key_spec.lua:21: Expected objects to be the same.
Passed in:
(table: 0x415c9368) {
[1234 ] = 'value' }
Expected:
(table: 0x402226e0) {
*[1234] = 'value' }
Failure -> spec/key_spec.lua @ 24
key parsing empty
spec/key_spec.lua:30: Expected objects to be the same.
Passed in:
(table: 0x41ef29c8) {
[ ] = 'blank' }
Expected:
(table: 0x4063a2b8) {
*[] = 'blank' }
Failure -> spec/key_spec.lua @ 33
key parsing space
spec/key_spec.lua:40: Expected objects to be the same.
Passed in:
(table: 0x40221188) {
[a b ] = 1 }
Expected:
(table: 0x40644a80) {
*[a b] = 1 }
Failure -> spec/key_spec.lua @ 43
key parsing special chars
spec/key_spec.lua:50: Expected objects to be the same.
Passed in:
(table: 0x41ee0cb8) {
[~!@$^&*()_+-`1234567890[]|/?><.,;:' ] = 1 }
Expected:
(table: 0x41ee5608) {
*[~!@$^&*()_+-`1234567890[]|/?><.,;:'] = 1 }
Failure -> spec/strictness_spec.lua @ 6
strictness setting allows for mixed types in tables
spec/strictness_spec.lua:13: Expected objects to be the same.
Passed in:
(table: 0x40b833f8) {
[mixed ] = {
[1] = true
[2] = true
[3] = 3 } }
Expected:
(table: 0x41ee4238) {
*[mixed] = {
[1] = true
[2] = true
[3] = 3 } }
Failure -> spec/string_spec.lua @ 6
string parsing multiline
spec/string_spec.lua:40: Expected objects to be the same.
Passed in:
(table: 0x40223098) {
[equivalent_one ] = 'The quick brown fox jumps over the lazy dog.'
[equivalent_three ] = 'The quick brown fox jumps over the lazy dog.'
[equivalent_two ] = 'The quick brown fox jumps over the lazy dog.'
[multiline_empty_four ] = ''
[multiline_empty_one ] = ''
[multiline_empty_three ] = ''
[multiline_empty_two ] = '' }
Expected:
(table: 0x41eeb810) {
[equivalent_one] = 'The quick brown fox jumps over the lazy dog.'
[equivalent_three] = 'The quick brown fox jumps over the lazy dog.'
[equivalent_two] = 'The quick brown fox jumps over the lazy dog.'
[multiline_empty_four] = ''
[multiline_empty_one] = ''
[multiline_empty_three] = ''
*[multiline_empty_two] = '' }
Failure -> spec/string_spec.lua @ 43
string parsing raw multiline
spec/string_spec.lua:64: Expected objects to be the same.
Passed in:
(table: 0x40221710) {
[firstnl ] = 'This string has a ' quote character.'
[multiline ] = 'This string
has a ' quote character
and more than
one newline
in it.'
[oneline ] = 'This string has a ' quote character.' }
Expected:
(table: 0x40649a58) {
[firstnl] = 'This string has a ' quote character.'
[multiline] = 'This string
has a ' quote character
and more than
one newline
in it.'
*[oneline] = 'This string has a ' quote character.' }
Failure -> spec/string_spec.lua @ 67
string parsing raw
spec/string_spec.lua:85: Expected objects to be the same.
Passed in:
(table: 0x40239830) {
[backslash ] = 'This string has a \\ backslash character.'
[backspace ] = 'This string has a \b backspace character.'
[carriage ] = 'This string has a \r carriage return character.'
[formfeed ] = 'This string has a \f form feed character.'
[newline ] = 'This string has a \n new line character.'
[slash ] = 'This string has a / slash character.'
[tab ] = 'This string has a \t tab character.' }
Expected:
(table: 0x408be808) {
[backslash] = 'This string has a \\ backslash character.'
*[backspace] = 'This string has a \b backspace character.'
[carriage] = 'This string has a \r carriage return character.'
[formfeed] = 'This string has a \f form feed character.'
[newline] = 'This string has a \n new line character.'
[slash] = 'This string has a / slash character.'
[tab] = 'This string has a \t tab character.' }
Failure -> spec/string_spec.lua @ 88
string parsing empty
spec/string_spec.lua:95: Expected objects to be the same.
Passed in:
(table: 0x40ddc1b0) {
[answer ] = '' }
Expected:
(table: 0x40543f28) {
*[answer] = '' }
Failure -> spec/string_spec.lua @ 98
string parsing escapes
spec/string_spec.lua:124: Expected objects to be the same.
Passed in:
(table: 0x40548c50) {
[backslash ] = 'This string has a \ backslash character.'
[backspace ] = 'This string has a backspace character.'
[carriage ] = 'This string has a
carriage return character.'
[formfeed ] = 'This string has a form feed character.'
[newline ] = 'This string has a
new line character.'
[notunicode1 ] = 'This string does not have a unicode \u escape.'
[notunicode2 ] = 'This string does not have a unicode \u escape.'
[notunicode3 ] = 'This string does not have a unicode \u0075 escape.'
[notunicode4 ] = 'This string does not have a unicode \u escape.'
[quote ] = 'This string has a " quote character.'
[tab ] = 'This string has a tab character.' }
Expected:
(table: 0x40633858) {
[backslash] = 'This string has a \ backslash character.'
[backspace] = 'This string has a backspace character.'
[carriage] = 'This string has a
carriage return character.'
[formfeed] = 'This string has a form feed character.'
[newline] = 'This string has a
new line character.'
[notunicode1] = 'This string does not have a unicode \u escape.'
[notunicode2] = 'This string does not have a unicode \u escape.'
[notunicode3] = 'This string does not have a unicode \u0075 escape.'
[notunicode4] = 'This string does not have a unicode \u escape.'
[quote] = 'This string has a " quote character.'
*[tab] = 'This string has a tab character.' }
Failure -> spec/string_spec.lua @ 127
string parsing simple
spec/string_spec.lua:133: Expected objects to be the same.
Passed in:
(table: 0x406380b0) {
[answer ] = 'You are not drinking enough whisky.' }
Expected:
(table: 0x41f9b2b0) {
*[answer] = 'You are not drinking enough whisky.' }
Failure -> spec/string_spec.lua @ 136
string parsing with pound
spec/string_spec.lua:144: Expected objects to be the same.
Passed in:
(table: 0x40b71d78) {
[pound ] = 'We see no # comments here.'
[poundcomment ] = 'But there are # some comments here.' }
Expected:
(table: 0x41f8bfb8) {
[pound] = 'We see no # comments here.'
*[poundcomment] = 'But there are # some comments here.' }
Failure -> spec/table-array_spec.lua @ 6
table array parsing implicit
spec/table-array_spec.lua:17: Expected objects to be the same.
Passed in:
(table: 0x40b81430) {
*[albums] = {
*[songs] = {
*[1] = { ... more } } } }
Expected:
(table: 0x40227d50) {
*[albums] = {
*[songs] = {
*[1] = { ... more } } } }
Failure -> spec/table-array_spec.lua @ 20
table array parsing many
spec/table-array_spec.lua:40: Expected objects to be the same.
Passed in:
(table: 0x40550208) {
*[people] = {
*[1] = {
[first_name ] = 'Bruce'
[last_name ] = 'Springsteen' }
[2] = {
[first_name ] = 'Eric'
[last_name ] = 'Clapton' }
[3] = {
[first_name ] = 'Bob'
[last_name ] = 'Seger' } } }
Expected:
(table: 0x408cf398) {
*[people] = {
*[1] = {
*[first_name] = 'Bruce'
[last_name] = 'Springsteen' }
[2] = {
[first_name] = 'Eric'
[last_name] = 'Clapton' }
[3] = {
[first_name] = 'Bob'
[last_name] = 'Seger' } } }
Failure -> spec/table-array_spec.lua @ 44
table array parsing nest
spec/table-array_spec.lua:81: Expected objects to be the same.
Passed in:
(table: 0x41855080) {
*[albums] = {
*[1] = {
[name ] = 'Born to Run'
*[songs] = { ... more } }
[2] = {
[name ] = 'Born in the USA'
[songs] = { ... more } } } }
Expected:
(table: 0x41857a88) {
*[albums] = {
*[1] = {
[name] = 'Born to Run'
*[songs] = { ... more } }
[2] = {
[name] = 'Born in the USA'
[songs] = { ... more } } } }
Failure -> spec/table-array_spec.lua @ 84
table array parsing one
spec/table-array_spec.lua:94: Expected objects to be the same.
Passed in:
(table: 0x4185e7e8) {
*[people] = {
*[1] = {
[first_name ] = 'Bruce'
[last_name ] = 'Springsteen' } } }
Expected:
(table: 0x4185eee8) {
*[people] = {
*[1] = {
*[first_name] = 'Bruce'
[last_name] = 'Springsteen' } } }
Failure -> spec/table_spec.lua @ 26
table whitespace
spec/table_spec.lua:59: Expected objects to be the same.
Passed in:
(table: 0x414b5648) {
[ d] = {
[e] = {
[f ] = { ... more } } }
[ g ] = {
[ h ] = {
[ i ] = { ... more } } }
[a] = {
[b] = {
[c] = { ... more } } } }
Expected:
(table: 0x414b6ba0) {
[a] = {
[b] = {
[c] = { ... more } } }
*[d] = {
[e] = {
[f] = { ... more } } }
[g] = {
[h] = {
[i] = { ... more } } } }
Failure -> spec/table_spec.lua @ 62
table quoted
spec/table_spec.lua:73: Expected objects to be the same.
Passed in:
(table: 0x414bdb48) {
*[dog] = {
*[tater.man] = {
[type ] = 'pug' } } }
Expected:
(table: 0x414be388) {
*[dog] = {
*[tater.man] = {
*[type] = 'pug' } } }
Failure -> spec/table_spec.lua @ 76
table inline
spec/table_spec.lua:91: Expected objects to be the same.
Passed in:
(table: 0x414c3eb0) {
[name ] = {
[ first ] = 'Tom'
[ last ] = 'Preston-Werner' }
[point ] = {
[ x ] = 1
[ y ] = 2 } }
Expected:
(table: 0x414c4ac0) {
[name] = {
[first] = 'Tom'
[last] = 'Preston-Werner' }
*[point] = {
[x] = 1
[y] = 2 } }
>>> ERROR: lua-toml: check failed