fix handling of multiple arguments
[libt2n] / example-codegen / client.cpp
index f3f1176..10d2e52 100644 (file)
 int main(int argc, char** argv)
 {
   libt2n::socket_client_connection sc("./socket");
-  cmd_group_example_client cc(sc);
+  cmd_group_default_client cc(sc);
 
-  return (cc.testfunc("hello")=="hello, testfunc() was here") ? EXIT_SUCCESS : EXIT_FAILURE;
+  return ( ( cc.testfunc("hello") == "hello, testfunc() was here" )
+          && ( cc.testfunc_ref("hello") == "hello, testfunc() was here" )
+          && ( cc.t2(10) == 10 )
+          && ( cc.t3(10, 20, "hello", std::pair<int, float>(10,20)) ) )
+    ? EXIT_SUCCESS : EXIT_FAILURE;
 }