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

Method find

util/generic/string_ut.cpp:445–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443 }
444
445 void find() {
446 TStringType s(Data_.one_two_three_one_two_three());
447
448 UNIT_ASSERT(s.find(Data_.one()) == 0);
449 UNIT_ASSERT(s.find(*Data_.t()) == 4);
450 UNIT_ASSERT(s.find(*Data_.t(), 5) == 8);
451
452 UNIT_ASSERT(s.find(Data_.four()) == TStringType::npos);
453 UNIT_ASSERT(s.find(Data_.one(), TStringType::npos) == TStringType::npos);
454 UNIT_ASSERT(s.find_first_of(Data_.abcde()) == 2);
455 UNIT_ASSERT(s.find_first_not_of(Data_.enotw_()) == 9);
456 }
457
458 void capacity() {
459 TStringType s;

Callers 1

TestZeroMethod · 0.45

Calls 8

fourMethod · 0.80
abcdeMethod · 0.80
enotw_Method · 0.80
oneMethod · 0.45
tMethod · 0.45
find_first_ofMethod · 0.45
find_first_not_ofMethod · 0.45

Tested by 1

TestZeroMethod · 0.36