| 1065 | } |
| 1066 | |
| 1067 | void TestFront() { |
| 1068 | const char_type chars[] = {'f', 'o', 'o', 0}; |
| 1069 | |
| 1070 | TStringType str = chars; |
| 1071 | const TStringType constStr = str; |
| 1072 | |
| 1073 | UNIT_ASSERT_VALUES_EQUAL(constStr.front(), (ui8)'f'); |
| 1074 | UNIT_ASSERT_VALUES_EQUAL(str.front(), (ui8)'f'); |
| 1075 | |
| 1076 | str.front() = 'r'; |
| 1077 | UNIT_ASSERT_VALUES_EQUAL(constStr.front(), (ui8)'f'); |
| 1078 | UNIT_ASSERT_VALUES_EQUAL(str.front(), (ui8)'r'); |
| 1079 | } |
| 1080 | |
| 1081 | void TestIterators() { |
| 1082 | const char_type chars[] = {'f', 'o', 0}; |