reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
399 ASSERT_TRUE(I.valid()); 400 EXPECT_EQ(10*i, I.start()); 401 EXPECT_EQ(10*i+5, I.stop()); 402 EXPECT_EQ(i, *I); 403 ++I; 405 EXPECT_FALSE(I.valid()); 406 EXPECT_TRUE(I == map.end()); 410 --I; 411 ASSERT_TRUE(I.valid()); 412 EXPECT_EQ(10*i, I.start()); 413 EXPECT_EQ(10*i+5, I.stop()); 414 EXPECT_EQ(i, *I); 416 EXPECT_TRUE(I == map.begin()); 419 I.advanceTo(20); 420 ASSERT_TRUE(I.valid()); 421 EXPECT_EQ(20u, I.start()); 422 EXPECT_EQ(25u, I.stop()); 425 I.setValue(0); 426 ASSERT_TRUE(I.valid()); 427 EXPECT_EQ(20u, I.start()); 428 EXPECT_EQ(25u, I.stop()); 429 EXPECT_EQ(0u, I.value()); 432 I.setStop(29); 433 ASSERT_TRUE(I.valid()); 434 EXPECT_EQ(20u, I.start()); 435 EXPECT_EQ(29u, I.stop()); 436 EXPECT_EQ(0u, I.value()); 439 I.setValue(2); 440 ASSERT_TRUE(I.valid()); 441 EXPECT_EQ(20u, I.start()); 442 EXPECT_EQ(29u, I.stop()); 443 EXPECT_EQ(2u, I.value()); 446 I.setValue(3); 447 ASSERT_TRUE(I.valid()); 448 EXPECT_EQ(20u, I.start()); 449 EXPECT_EQ(35u, I.stop()); 450 EXPECT_EQ(3u, I.value()); 453 I.setValue(4); 454 ASSERT_TRUE(I.valid()); 455 I.setStop(39); 456 ASSERT_TRUE(I.valid()); 457 EXPECT_EQ(20u, I.start()); 458 EXPECT_EQ(45u, I.stop()); 459 EXPECT_EQ(4u, I.value()); 462 I.advanceTo(200); 463 ASSERT_TRUE(I.valid()); 464 EXPECT_EQ(200u, I.start()); 465 EXPECT_EQ(205u, I.stop()); 468 I.setStart(196); 469 ASSERT_TRUE(I.valid()); 470 EXPECT_EQ(196u, I.start()); 471 EXPECT_EQ(205u, I.stop()); 472 EXPECT_EQ(20u, I.value()); 475 I.setValue(0); 476 ASSERT_TRUE(I.valid()); 477 EXPECT_EQ(196u, I.start()); 478 EXPECT_EQ(205u, I.stop()); 479 EXPECT_EQ(0u, I.value()); 482 I.setValue(19); 483 ASSERT_TRUE(I.valid()); 484 EXPECT_EQ(190u, I.start()); 485 EXPECT_EQ(205u, I.stop()); 486 EXPECT_EQ(19u, I.value()); 489 I.setValue(18); 490 ASSERT_TRUE(I.valid()); 491 I.setStart(186); 492 ASSERT_TRUE(I.valid()); 493 EXPECT_EQ(180u, I.start()); 494 EXPECT_EQ(205u, I.stop()); 495 EXPECT_EQ(18u, I.value()); 498 I = map.begin(); 500 I.erase(); 501 EXPECT_TRUE(I == map.begin()); 503 EXPECT_EQ(I.start(), map.start());