diff --git a/test/big/big.lua b/test/big/big.lua index 1433fb14af7774d5acdcd1c9e0bc75d1f5c36fd8..8607cc929f1adc869fdb50adcddb4c7e3bb46f0e 100644 --- a/test/big/big.lua +++ b/test/big/big.lua @@ -9,8 +9,8 @@ box.cfg{ require('console').listen(os.getenv('ADMIN')) -function compare(a,b) - return a[1] < b[1] +function compare(a,b) + return a[1] < b[1] end function sorted(data) diff --git a/test/big/sql.result b/test/big/sql.result index 361e29c755941ae5b172cac4ccc93b03dfab1d34..e4281f832f50953ab1d5b24ab46ce9ac21585ec3 100644 --- a/test/big/sql.result +++ b/test/big/sql.result @@ -75,10 +75,9 @@ space:insert{'Britney'} --- - error: Tuple field count 1 is less than required by a defined index (expected 2) ... -soretd(space.index.secondary:select('Anything')) +sorted(space.index.secondary:select('Anything')) --- -- error: '[string "return soretd(space.index.secondary:select(''A..."]:1: attempt - to call global ''soretd'' (a nil value)' +- [] ... space:insert{'Stephanie'} --- @@ -347,7 +346,7 @@ space:insert{4, 'world'} --- - [4, 'world'] ... --- Check how build_idnexes() works +-- Check how build_indexes() works --# stop server default --# start server default net_box = require('net.box') diff --git a/test/big/sql.test.lua b/test/big/sql.test.lua index 92924850f30406c119aa704e37439e4cc74b93a7..f1e998eaacf2a87a58e00389724ad14f6895d615 100644 --- a/test/big/sql.test.lua +++ b/test/big/sql.test.lua @@ -37,7 +37,7 @@ s:truncate() -- get away with it. space:insert{'Britney'} -soretd(space.index.secondary:select('Anything')) +sorted(space.index.secondary:select('Anything')) space:insert{'Stephanie'} sorted(space.index.secondary:select('Anything')) space:insert{'Spears', 'Britney'} @@ -124,7 +124,7 @@ space:insert{3, 'new'} space:insert{4, 'world'} --- Check how build_idnexes() works +-- Check how build_indexes() works --# stop server default --# start server default net_box = require('net.box') diff --git a/test/box/sql.result b/test/box/sql.result index b66135865c3a8cd12d4569e20a83a426782cf89a..851af76b0403693a030a2ef60fae4550f8a69ce1 100644 --- a/test/box/sql.result +++ b/test/box/sql.result @@ -24,7 +24,7 @@ conn:ping() - true ... -- xxx: bug currently selects no rows -space:select() +space:select{} --- - error: Invalid key part count in an exact match (expected 1, got 0) ... diff --git a/test/box/sql.test.lua b/test/box/sql.test.lua index b0dfa37a1a3858f15198d4bb479ddbbc0cdad585..a47d11570e7bbaf570042a46135b0c7bb9c65e4c 100644 --- a/test/box/sql.test.lua +++ b/test/box/sql.test.lua @@ -11,7 +11,7 @@ index = box.space.test:create_index('primary', { type = 'hash' }) conn:ping() -- xxx: bug currently selects no rows -space:select() +space:select{} space:insert{1, 'I am a tuple'} space:select{1}