コード例 #1
0
TEST(qpsContainerModel, vectorPodItemCount)
{
    using Ints = qps::ContainerModel< QVector, int >;
    Ints ints;
    EXPECT_EQ( ints.rowCount(), 0 );
    EXPECT_EQ( ints.getItemCount(), 0 );
    ints.append( 42 );
    ints.append( 43 );
    EXPECT_EQ( ints.rowCount(), 2 );
    EXPECT_EQ( ints.getItemCount(), 2 );
}
コード例 #2
0
TEST(qpsContainerModel, vectorPodEmpty)
{
    using Ints = qps::ContainerModel< QVector, int >;
    Ints ints;
    EXPECT_EQ( ints.rowCount(), 0 );
    EXPECT_EQ( ints.getItemCount(), 0 );
}