comparison UnitTestsSources/RestApiTests.cpp @ 1064:cd20e2568fc2

fix tests
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 25 Jul 2014 16:13:36 +0200
parents ce3106e5843f
children 6e7e5ed91c2d
comparison
equal deleted inserted replaced
1063:0332e6e8c679 1064:cd20e2568fc2
263 263
264 ASSERT_TRUE(GetDirectory(d, root, "/hello/a/test3")); 264 ASSERT_TRUE(GetDirectory(d, root, "/hello/a/test3"));
265 ASSERT_EQ(1u, d.size()); 265 ASSERT_EQ(1u, d.size());
266 ASSERT_EQ("test4", d[0].asString()); 266 ASSERT_EQ("test4", d[0].asString());
267 267
268 ASSERT_FALSE(GetDirectory(d, root, "/hello/world/test")); 268 ASSERT_TRUE(GetDirectory(d, root, "/hello/world/test"));
269 ASSERT_FALSE(GetDirectory(d, root, "/hello/world/test2")); 269 ASSERT_TRUE(GetDirectory(d, root, "/hello/world/test2"));
270 ASSERT_FALSE(GetDirectory(d, root, "/hello2")); 270 ASSERT_FALSE(GetDirectory(d, root, "/hello2"));
271 271
272 testValue = 0; 272 testValue = 0;
273 ASSERT_TRUE(HandleGet(root, "/hello/world/test")); 273 ASSERT_TRUE(HandleGet(root, "/hello/world/test"));
274 ASSERT_EQ(testValue, 1); 274 ASSERT_EQ(testValue, 1);