failing test, needs to be checked.

This commit is contained in:
Yangqing Jia 2013-09-13 13:13:38 -07:00
Родитель abe7272286
Коммит 9e1b0d17b7
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -36,6 +36,14 @@ TYPED_TEST(BlobSimpleTest, TestInitialization) {
EXPECT_EQ(this->blob_->count(), 0); EXPECT_EQ(this->blob_->count(), 0);
} }
TYPED_TEST(BlobSimpleTest, TestPointers) {
EXPECT_TRUE(this->blob_preshaped_->gpu_data() != NULL);
EXPECT_TRUE(this->blob_preshaped_->cpu_data() != NULL);
EXPECT_TRUE(this->blob_preshaped_->mutable_gpu_data() != NULL);
EXPECT_TRUE(this->blob_preshaped_->mutable_cpu_data() != NULL);
}
TYPED_TEST(BlobSimpleTest, TestReshape) { TYPED_TEST(BlobSimpleTest, TestReshape) {
this->blob_->Reshape(2, 3, 4, 5); this->blob_->Reshape(2, 3, 4, 5);
EXPECT_EQ(this->blob_->num(), 2); EXPECT_EQ(this->blob_->num(), 2);
@ -45,4 +53,5 @@ TYPED_TEST(BlobSimpleTest, TestReshape) {
EXPECT_EQ(this->blob_->count(), 120); EXPECT_EQ(this->blob_->count(), 120);
} }
} }