From a11b0abee850775231485d478a8f6e0d963ff6d1 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 8 Apr 2015 11:46:44 +0100 Subject: Add siphash testing. --- test/lua/unit/siphash.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/lua/unit/siphash.lua (limited to 'test') diff --git a/test/lua/unit/siphash.lua b/test/lua/unit/siphash.lua new file mode 100644 index 000000000..62a30b01a --- /dev/null +++ b/test/lua/unit/siphash.lua @@ -0,0 +1,14 @@ +-- Test siphash routines + +context("Siphash check functions", function() + local ffi = require("ffi") + ffi.cdef[[ + size_t siphash24_test(void); + ]] + + test("Siphash test vectors", function() + local res = ffi.C.siphash24_test() + + assert_not_equal(res, 0) + end) +end) \ No newline at end of file -- cgit v1.2.3