summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2017-07-19 17:46:37 (GMT)
committerGitHub <noreply@github.com>2017-07-19 17:46:37 (GMT)
commit998e624aaddb237767f5d80e0ff12eb2cfdc814b (patch)
tree7583d7bf04d760d8b889a5618b7d98679ef4b423 /test
parent4a9b4978eca21c01e45bdea56ee97285b8ca11a7 (diff)
parente0a7e43e2e41639bb50127cc5419b712a7b1f6e2 (diff)
downloaduscxml-998e624aaddb237767f5d80e0ff12eb2cfdc814b.zip
uscxml-998e624aaddb237767f5d80e0ff12eb2cfdc814b.tar.gz
uscxml-998e624aaddb237767f5d80e0ff12eb2cfdc814b.tar.bz2
Merge pull request #163 from tklab-tud/sradomski
DOM with Lua DataModel and dropped V8
Diffstat (limited to 'test')
-rw-r--r--test/src/test-snippets.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/test/src/test-snippets.cpp b/test/src/test-snippets.cpp
index 5eb680f..4f67734 100644
--- a/test/src/test-snippets.cpp
+++ b/test/src/test-snippets.cpp
@@ -34,29 +34,29 @@ void microstep_snippet() {
}
void lambda_snippet() {
- InterpreterState state = uscxml::USCXML_UNDEF;
- Interpreter scxml = Interpreter::fromURL("https://raw.githubusercontent.com/tklab-tud/uscxml/master/test/w3c/null/test436.scxml");
+ InterpreterState state = uscxml::USCXML_UNDEF;
+ Interpreter scxml = Interpreter::fromURL("https://raw.githubusercontent.com/tklab-tud/uscxml/master/test/w3c/null/test436.scxml");
- scxml.on().enterState([](const std::string& sessionId,
- const std::string& stateName,
- const xercesc_3_1::DOMElement* state) {
- std::cout << "Entered " << stateName << std::endl;
- });
+ scxml.on().enterState([](const std::string& sessionId,
+ const std::string& stateName,
+ const xercesc_3_1::DOMElement* state) {
+ std::cout << "Entered " << stateName << std::endl;
+ });
- scxml.on().exitState([](const std::string& sessionId,
- const std::string& stateName,
- const xercesc_3_1::DOMElement* state) {
- std::cout << "Exited " << stateName << std::endl;
- });
+ scxml.on().exitState([](const std::string& sessionId,
+ const std::string& stateName,
+ const xercesc_3_1::DOMElement* state) {
+ std::cout << "Exited " << stateName << std::endl;
+ });
- while((state = scxml.step()) != uscxml::USCXML_FINISHED) {}
+ while((state = scxml.step()) != uscxml::USCXML_FINISHED) {}
}
int main(int argc, char** argv) {
try {
- lambda_snippet();
+ lambda_snippet();
microstep_snippet();
} catch (...) {
exit(EXIT_FAILURE);