diff options
author | Stefan Radomski <sradomski@mintwerk.de> | 2016-01-10 02:40:12 (GMT) |
---|---|---|
committer | Stefan Radomski <sradomski@mintwerk.de> | 2016-01-10 02:40:12 (GMT) |
commit | 613cf9fb6fe4b24bc7852d5a31953f6ff419e43c (patch) | |
tree | 8459365c5a6a00503063b0bf1d516fce5ea4d891 /test/src/test-datamodel.cpp | |
parent | c699a4057a65a9a09f78310d8e12588f2dc072cd (diff) | |
download | uscxml-613cf9fb6fe4b24bc7852d5a31953f6ff419e43c.zip uscxml-613cf9fb6fe4b24bc7852d5a31953f6ff419e43c.tar.gz uscxml-613cf9fb6fe4b24bc7852d5a31953f6ff419e43c.tar.bz2 |
Beautified code
Diffstat (limited to 'test/src/test-datamodel.cpp')
-rw-r--r-- | test/src/test-datamodel.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/test/src/test-datamodel.cpp b/test/src/test-datamodel.cpp index 4b93b4d..12f74e6 100644 --- a/test/src/test-datamodel.cpp +++ b/test/src/test-datamodel.cpp @@ -16,15 +16,15 @@ using namespace boost; class TestDataModelExtension : public DataModelExtension { public: TestDataModelExtension() {} - + std::string provides() { return "_x.platform.pool"; } - + Data getValueOf(const std::string& member) { return Data(true); } - + void setValueOf(const std::string& member, const Data& data) { std::cout << "Setting " << member << " to " << std::endl << Data::toJSON(data); } @@ -497,20 +497,20 @@ int main(int argc, char** argv) { std::cout << content << std::endl; assert(boost::equals(content, "There are 12 monkeys! Really 12 monkeys!")); } - + { std::string xml = - "<scxml datamodel=\"ecmascript\">" - " <script src=\"http://uscxml.tk.informatik.tu-darmstadt.de/scripts/dump.js\" />" - " <state id=\"s1\">" - " <onentry>" - " <script>_x.platform.pool('memeber.second', { foo: 12, bar: 34})</script>" - " <log label=\"ext\" expr=\"dump(_x.platform.pool('member.first'))\" />" - " </onentry>" - " <transition target=\"done\" />" - " </state>" - " <final id=\"done\" />" - "</scxml>"; + "<scxml datamodel=\"ecmascript\">" + " <script src=\"http://uscxml.tk.informatik.tu-darmstadt.de/scripts/dump.js\" />" + " <state id=\"s1\">" + " <onentry>" + " <script>_x.platform.pool('memeber.second', { foo: 12, bar: 34})</script>" + " <log label=\"ext\" expr=\"dump(_x.platform.pool('member.first'))\" />" + " </onentry>" + " <transition target=\"done\" />" + " </state>" + " <final id=\"done\" />" + "</scxml>"; TestDataModelExtension ext; Interpreter interpreter = Interpreter::fromXML(xml, ""); @@ -522,6 +522,6 @@ int main(int argc, char** argv) { state = interpreter.step(); } while (state != USCXML_FINISHED && state!= USCXML_DESTROYED); - + } }
\ No newline at end of file |