From 24c2e857ab585c88754397bf02dd1e9d252f924c Mon Sep 17 00:00:00 2001 From: Yoni Fogel <yoni@tokutek.com> Date: Thu, 20 Dec 2007 18:34:33 +0000 Subject: [PATCH] Added Dbt.get_ulen and Dbt.set_ulen Modified test1 to test new functions and some of the older ones. Addresses #197 git-svn-id: file:///svn/tokudb@1284 c7de825b-a66e-492c-adef-691d508d4ae1 --- cxx/tests/test1.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/cxx/tests/test1.cpp b/cxx/tests/test1.cpp index b405afc7767..a217f8f8517 100644 --- a/cxx/tests/test1.cpp +++ b/cxx/tests/test1.cpp @@ -5,8 +5,20 @@ using namespace std; int main() { + u_int32_t size = 3; + u_int32_t flags = 5; + u_int32_t ulen = 7; + void* data = &size; Dbt dbt; - dbt.set_size(3); + + dbt.set_size(size); + dbt.set_flags(flags); + dbt.set_data(data); + dbt.set_ulen(ulen); + assert(dbt.get_size() == size); + assert(dbt.get_flags() == flags); + assert(dbt.get_data() == data); + assert(dbt.get_ulen() == ulen); cout << "Hello World!" << endl; cout << "Welcome to C++ Programming" << endl; return 0; } -- 2.30.9