comparison UnitTestsSources/LuaTests.cpp @ 1053:ee5cbe6e48d3

oups
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 23 Jul 2014 16:52:03 +0200
parents cc4ff680e2a0
children 6f923d52a46c
comparison
equal deleted inserted replaced
1052:cc4ff680e2a0 1053:ee5cbe6e48d3
262 262
263 lua.Execute(s, "print(HttpPost(\"http://localhost:8042/tools/execute-script\", \"print('[10,42,1000]')\", true)[2])"); 263 lua.Execute(s, "print(HttpPost(\"http://localhost:8042/tools/execute-script\", \"print('[10,42,1000]')\", true)[2])");
264 ASSERT_EQ("42", Orthanc::Toolbox::StripSpaces(s)); 264 ASSERT_EQ("42", Orthanc::Toolbox::StripSpaces(s));
265 #endif 265 #endif
266 266
267 #if 1 267 #if 0
268 lua.Execute(s, "print(HttpGet('http://localhost:8042/modalities'))"); 268 lua.Execute(s, "print(HttpGet('http://localhost:8042/modalities'))");
269 lua.Execute(s, "print(HttpPut('http://localhost:8042/modalities/lua', '[ \"ORTHANC\", \"localhost\", 4242 ]'))"); 269 lua.Execute(s, "print(HttpPut('http://localhost:8042/modalities/lua', '[ \"ORTHANC\", \"localhost\", 4242 ]'))");
270 lua.Execute(s, "print(HttpGet('http://localhost:8042/modalities'))"); 270 lua.Execute(s, "print(HttpGet('http://localhost:8042/modalities'))");
271 lua.Execute(s, "print(HttpDelete('http://localhost:8042/modalities/lua'))"); 271 lua.Execute(s, "print(HttpDelete('http://localhost:8042/modalities/lua'))");
272 lua.Execute(s, "print(HttpGet('http://localhost:8042/modalities'))"); 272 lua.Execute(s, "print(HttpGet('http://localhost:8042/modalities'))");