MCPcopy Create free account
hub / github.com/catboost/catboost / TestFront

Method TestFront

util/generic/string_ut.h:1067–1079  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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};

Callers

nothing calls this directly

Calls 1

frontMethod · 0.45

Tested by

no test coverage detected