Unit Tests - correction to T::compose tests
- Uses " instead of ' to quote annotations.
This commit is contained in:
@@ -86,7 +86,7 @@ int main (int argc, char** argv)
|
||||
t.setDescription ("sample");
|
||||
std::string format = t.compose ();
|
||||
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");
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user