Unit Tests - correction to T::compose tests

- Uses " instead of ' to quote annotations.
This commit is contained in:
Paul Beckingham 2009-04-24 00:09:59 -04:00
parent 76c66b8ab1
commit 1b6faf57c9

View file

@ -86,7 +86,7 @@ int main (int argc, char** argv)
t.setDescription ("sample"); t.setDescription ("sample");
std::string format = t.compose (); std::string format = t.compose ();
test.is (format.substr (36, 20), " - [foo] [bar:baz] [", "compose tag, attribute"); test.is (format.substr (36, 20), " - [foo] [bar:baz] [", "compose tag, attribute");
test.is (format.substr (66, 16), ":'woof'] sample\n", "compose annotation"); test.is (format.substr (66, 16), ":\"woof\"] sample\n", "compose annotation");
test.is (t.getAnnotationCount (), 1, "annotation count"); test.is (t.getAnnotationCount (), 1, "annotation count");
return 0; return 0;