| … | … | @@ -144,6 +144,7 @@ public: |
| 144 | 144 | std::string result = json_cmd_exec( |
| 145 | 145 | "echo 'json\\nAtomSpace.haveNode(\"Concept\", \"test-concept-json\")\\n' | nc -q 1 localhost 17335"); |
| 146 | 146 | |
| 147 | printf("Do we have the node? result=>>>%s<<<\n", result.c_str()); |
| 147 | 148 | // Should return "true" |
| 148 | 149 | TS_ASSERT(result.find("true") != std::string::npos); |
| 149 | 150 | |
| … | … | @@ -170,6 +171,7 @@ public: |
| 170 | 171 | std::string result = json_cmd_exec( |
| 171 | 172 | "echo 'json\\nAtomSpace.getAtoms(\"ConceptNode\")\\n' | nc -q 3 localhost 17335"); |
| 172 | 173 | |
| 174 | printf("Did we get the Concepts? result=>>>%s<<<\n", result.c_str()); |
| 173 | 175 | TS_ASSERT(result.find("json-test-1") != std::string::npos); |
| 174 | 176 | TS_ASSERT(result.find("json-test-2") != std::string::npos); |
| 175 | 177 | |
| … | … | @@ -185,12 +187,14 @@ public: |
| 185 | 187 | std::string result = json_cmd_exec( |
| 186 | 188 | "echo 'json\\nAtomSpace.makeAtom({\"type\": \"Concept\", \"name\": \"json-created\"})\\n' | nc -q 3 localhost 17335"); |
| 187 | 189 | |
| 190 | printf("Did we make the Concept? result=>>>%s<<<\n", result.c_str()); |
| 188 | 191 | TS_ASSERT(result.find("true") != std::string::npos); |
| 189 | 192 | |
| 190 | 193 | // Verify the atom was created by checking with haveNode |
| 191 | 194 | std::string verify = json_cmd_exec( |
| 192 | 195 | "echo 'json\\nAtomSpace.haveNode(\"Concept\", \"json-created\")\\n' | nc -q 3 localhost 17335"); |
| 193 | 196 | |
| 197 | printf("Did verification work? verify=>>>%s<<<\n", result.c_str()); |
| 194 | 198 | TS_ASSERT(verify.find("true") != std::string::npos); |
| 195 | 199 | |
| 196 | 200 | logger().debug("END TEST: %s", __FUNCTION__); |