TEST( TestCOWFooable, CopyAssignment )
{
    Fooable fooable = MockFooable();
    Fooable other;
    other = fooable;
    test_copies( other, fooable, Mock::other_value );
}
TEST( TestVTableSBOFooable, CopyAssignment_LargeObject )
{
    Fooable fooable = MockLargeFooable();
    Fooable other;
    other = fooable;
    test_copies( other, fooable, Mock::other_value );
}
TEST( TestVTableHeaderOnlySBOCOWFooable, CopyAssignment_SmallObject )
{
    Fooable fooable = MockFooable();
    Fooable other;
    other = fooable;
    test_copies( other, fooable, Mock::other_value );
}
Ejemplo n.º 4
0
int main()
{
    test_find();
    test_equals();
    test_min();
    test_min_element(); 
    test_copies();
    std::cout << "Success!" << std::endl;
    return 0;
}
TEST( TestCOWFooable, CopyConstruction )
{
    Fooable fooable = MockFooable();
    Fooable other( fooable );
    test_copies( other, fooable, Mock::other_value );
}
TEST( TestVTableSBOFooable, CopyConstruction_LargeObject )
{
    Fooable fooable = MockLargeFooable();
    Fooable other( fooable );
    test_copies( other, fooable, Mock::other_value );
}
TEST( TestVTableHeaderOnlySBOCOWFooable, CopyConstruction_SmallObject )
{
    Fooable fooable = MockFooable();
    Fooable other( fooable );
    test_copies( other, fooable, Mock::other_value );
}