From 7a1c93d1f53cdb747b51b53baaf698682620a3ab Mon Sep 17 00:00:00 2001
From: Konstantin Osipov <kostja@tarantool.org>
Date: Fri, 22 May 2015 23:04:25 +0300
Subject: [PATCH] sql-tests-rewrite: review fixes

Remove trailing spaces, fix typos.
---
 test/big/big.lua      | 4 ++--
 test/big/sql.result   | 7 +++----
 test/big/sql.test.lua | 4 ++--
 test/box/sql.result   | 2 +-
 test/box/sql.test.lua | 2 +-
 5 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/test/big/big.lua b/test/big/big.lua
index 1433fb14af..8607cc929f 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 361e29c755..e4281f832f 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 92924850f3..f1e998eaac 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 b66135865c..851af76b04 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 b0dfa37a1a..a47d11570e 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}
 
-- 
GitLab