5 CHECK_EQ (
string (
"abc") ==
"abc",
true);
6 CHECK_EQ (
string (
"abc") ==
"",
false);
8 CHECK_EQ (
string (
"abc") !=
"abc",
false);
9 CHECK_EQ (
string (
"abc") !=
"",
true);
11 CHECK_EQ (
string (
"abc") ==
string (
"abc"),
true);
12 CHECK_EQ (
string (
"abc") ==
string (),
false);
13 CHECK_EQ (
string (
"abc") !=
string (
"abc"),
false);
14 CHECK_EQ (
string (
"abc") !=
string (),
true);
16 CHECK_EQ (
string () ==
string (),
true);
20 CHECK (
string (
"ab") <
string (
"b"));
21 CHECK (
string () <
string (
"0"));
22 CHECK (
string (
"a") <=
string (
"a"));
23 CHECK (
string (
"ab") <=
string (
"b"));
24 CHECK (
string () <=
string ());
25 CHECK (
string () <=
string (
"0"));
29 CHECK_EQ (
string (
"abcde") (0, 0) ==
string (),
true);
30 CHECK_EQ (
string (
"abcde") (0, 1) ==
string (
"a"),
true);
31 CHECK_EQ (
string (
"abcde") (0, 10) ==
string (
"abcde"),
true);
32 CHECK_EQ (
string (
"abcde") (-1, 1) ==
string (
"a"),
true);
33 CHECK_EQ (
string (
"abcde") (3, 2) ==
string (),
true);
34 CHECK_EQ (
string (
"abcde") (3, -2) ==
string (),
true);
35 CHECK_EQ (
string (
"abcde") (10, 11) ==
string (),
true);
36 CHECK_EQ (
string (
"abcde") (-3, -2) ==
string (),
true);
40 CHECK_EQ (
string (
"abc") *
"de" ==
string (
"abcde"),
true);
41 CHECK_EQ (
string (
"abc") *
string (
"de") ==
string (
"abcde"),
true);
42 CHECK_EQ (
"abc" *
string (
"de") ==
string (
"abcde"),
true);
46 string str1 =
"s\0tr1";
62 CHECK_EQ (str ==
string (
"x"),
true);
64 CHECK_EQ (str ==
string (
"xyz"),
true);
110 SUBCASE (
"normal conversion") {
166 for (
auto i= 0; i < 256; i++) {
int N(array< T > a)
Get the length of the array.
SI as_int(double x)
Converts a double to a signed integer, rounding to the nearest integer.
The list class represents a linked list.
TEST_CASE("test for operator+= and advance()")
string as_string_bool(bool f)