Skip to content

Commit 7a904a6

Browse files
committed
fix examples
1 parent 60b1029 commit 7a904a6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace unit_tests {
1212
auto s = string {'H', 'e', 'l', 'l', 'o', ',', ' ', 'W', 'o', 'r', 'l', 'd', '!'};
1313
valid::are_equal(13_z, s.length());
1414
string_assert::starts_with("Hello,", s);
15-
string_assert::does_not_end_with(" le monde!", s);
15+
string_assert::does_end_with(" World!", s);
1616
}
1717
};
1818
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +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,").and_().does().not_().end_with(" le monde!");
14+
assert_that(s).does().start_with("Hello,").and_().does().end_with(" World!");
1515
}
1616
};
1717
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace unit_tests {
1717
auto s = string {'H', 'e', 'l', 'l', 'o', ',', ' ', 'W', 'o', 'r', 'l', 'd', '!'};
1818
valid::are_equal(13_z, s.length());
1919
string_assert::starts_with("Hello,", s);
20-
string_assert::does_not_end_with(" le monde!", s);
20+
string_assert::does_end_with(" World!", s);
2121
}
2222
};
2323
}

0 commit comments

Comments
 (0)