summaryrefslogtreecommitdiff
path: root/test/lua
diff options
context:
space:
mode:
authorJens Geyer <jensg@apache.org>2014-12-14 03:14:26 +0100
committerJens Geyer <jensg@apache.org>2015-01-03 17:37:54 +0100
commit8bcfdd98ae59d840b677a485b74dda3953b4bcc1 (patch)
tree659ef62202eea161ca503d7ab3250238830abc8f /test/lua
parent43e195afcd4cd3db67c7343271920af147e268e6 (diff)
downloadthrift-8bcfdd98ae59d840b677a485b74dda3953b4bcc1.tar.gz
THRIFT-2886 Integrate binary type in standard Thrift cross test
Client: C_glib, C++, D, Erlang, Go, Haskell, Lua, Java/Me, JavaScript, Node, Ocaml, Perl, PHP, Python, Ruby Patch: Jens Geyer This closes #341 Minimal server-side implementations and TODO stubs for various languages to let "make check" succeeed. Not contained in this patch and still TODO: - client side implementations, i.e. calls to testBinary() and appropriate tests - server side hex printout missing for some languages
Diffstat (limited to 'test/lua')
-rw-r--r--test/lua/test_basic_client.lua2
-rw-r--r--test/lua/test_basic_server.lua4
2 files changed, 6 insertions, 0 deletions
diff --git a/test/lua/test_basic_client.lua b/test/lua/test_basic_client.lua
index e2e0d48dc..e7571f939 100644
--- a/test/lua/test_basic_client.lua
+++ b/test/lua/test_basic_client.lua
@@ -112,6 +112,8 @@ function testBasicClient()
assertEqual(
client:testDouble(0.123456789), 0.123456789, 'Failed testDouble 3')
+ -- TODO testBinary() ...
+
-- Accuracy of 16 decimal digits (rounds)
local a, b = 1.12345678906666663, 1.12345678906666661
assertEqual(a, b)
diff --git a/test/lua/test_basic_server.lua b/test/lua/test_basic_server.lua
index 7c175daca..96a1ae9e0 100644
--- a/test/lua/test_basic_server.lua
+++ b/test/lua/test_basic_server.lua
@@ -51,6 +51,10 @@ function TestHandler:testDouble(d)
return d
end
+function TestHandler:testBinary(by)
+ return by
+end
+
function TestHandler:testStruct(thing)
return thing
end