本文整理汇总了C++中testing::Gt方法的典型用法代码示例。如果您正苦于以下问题:C++ testing::Gt方法的具体用法?C++ testing::Gt怎么用?C++ testing::Gt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类testing
的用法示例。
在下文中一共展示了testing::Gt方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: testImageRendering
void GdImageRendererTest::testImageRendering(bool axis_labels)
{
const char* filename = temp_filename_.getFilename();
ASSERT_NE(nullptr, filename);
// Ensure temporary file is deleted at end of test.
FileDeleter deleter(filename);
bool result = buffer_.load("../test/data/test_file_stereo_8bit_64spp.dat");
ASSERT_TRUE(result);
const WaveformColors& colors = audacityWaveformColors;
result = renderer_.create(buffer_, 5.0, 1000, 300, colors, axis_labels); // zoom: 128
ASSERT_TRUE(result);
result = renderer_.saveAsPng(filename);
ASSERT_TRUE(result);
struct stat info;
int stat_result = stat(filename, &info);
ASSERT_THAT(stat_result, Eq(0));
ASSERT_THAT(info.st_size, Gt(0));
ASSERT_FALSE(output.str().empty());
ASSERT_TRUE(error.str().empty());
}
示例2: Pointwise
TEST(PointwiseTest, WorksForLhsNativeArray)
{
const int lhs[] = { 1, 2, 3 };
::std::vector<int> rhs;
rhs.push_back(2);
rhs.push_back(4);
rhs.push_back(6);
EXPECT_THAT(lhs, Pointwise(Lt(), rhs));
EXPECT_THAT(lhs, Not(Pointwise(Gt(), rhs)));
EXPECT_THAT(lhs, Each(Lt(0)));
}