summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/samples/store-scheme/script-test.cpp
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-10-25 03:18:16 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-10-25 03:18:16 +0000
commita2a2cb76e9582af32b6803be7fa99af074dc04ae (patch)
treed0ef504321e72fe16afd23f385f20386530f5dfc /sca-cpp/trunk/samples/store-scheme/script-test.cpp
parent0dd33c3859618f3a385583d7344230f0e1eb1004 (diff)
Support python method invocation style on references, ref.func(...) in addition to ref('func', ...). Minor cleanup of the various samples, renamed gettotal to total and getcatalog to items, for consistency with the python sample.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1026939 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/samples/store-scheme/script-test.cpp')
-rw-r--r--sca-cpp/trunk/samples/store-scheme/script-test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sca-cpp/trunk/samples/store-scheme/script-test.cpp b/sca-cpp/trunk/samples/store-scheme/script-test.cpp
index c05c287a20..0d5a9ccf9d 100644
--- a/sca-cpp/trunk/samples/store-scheme/script-test.cpp
+++ b/sca-cpp/trunk/samples/store-scheme/script-test.cpp
@@ -56,7 +56,7 @@ bool testEval() {
ostringstream os;
scheme::setupDisplay(os);
scheme::Env globalEnv = scheme::setupEnvironment();
- const value exp(mklist<value>("storeui_service", string("getcatalog")));
+ const value exp(mklist<value>("storeui_service", string("items")));
const value val = scheme::evalScript(exp, is, globalEnv);
ostringstream vs;
@@ -71,7 +71,7 @@ bool testEval() {
scheme::setupDisplay(os);
scheme::Env globalEnv = scheme::setupEnvironment();
- const value exp(mklist<value>("storeui_service", string("gettotal")));
+ const value exp(mklist<value>("storeui_service", string("total")));
const value res = scheme::evalScript(exp, is, globalEnv);
ostringstream rs;