Skip to content

Commit f0326b5

Browse files
committed
Update hello_world_tunit_constraints.cpp
1 parent cc9ed2b commit f0326b5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/xtd.tunit.examples/hello_worlds/hello_world_tunit_constraints/src/hello_world_tunit_constraints.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ namespace unit_tests {
1111
auto test_method_(create_string_from_chars) {
1212
auto s = string {'H', 'e', 'l', 'l', 'o', ',', ' ', 'W', 'o', 'r', 'l', 'd', '!'};
1313
valid_that(s.length()).is().equal_to(13_z);
14-
assert_that(s).does().start_with("Hello,");
15-
assert_that(s).does().not_().end_with(" le monde!");
14+
assert_that(s).does().start_with("Hello,").and_().does().not_().end_with(" le monde!");
1615
}
1716
};
1817
}

0 commit comments

Comments
 (0)