本文整理汇总了C++中ASSERT_NO_THROW函数的典型用法代码示例。如果您正苦于以下问题:C++ ASSERT_NO_THROW函数的具体用法?C++ ASSERT_NO_THROW怎么用?C++ ASSERT_NO_THROW使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ASSERT_NO_THROW函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: TEST_F
TEST_F(TestIndicesFromValues, search_nonexisting) { ASSERT_NO_THROW(this->search_nonexisting()); }
示例2: TEST
TEST(Graph, can_add_edge_to_graph){
Graph<int> g(5,10);
ASSERT_NO_THROW(g.addEdge(1, 2, 3));
}
示例3: TYPED_TEST
TYPED_TEST(TestIndexValueMapper, change_indice_value)
{
ASSERT_NO_THROW(this->change_indice_value());
}
示例4: TEST
TEST(PRIORITY_QUEUE, can_create_queue){
PRIORITY_QUEUE<int>* a;
ASSERT_NO_THROW(a = new PRIORITY_QUEUE<int>(2));
}
示例5: TEST
TEST(Table, can_copy_Scan_table_to_Sort_table)
{
ScanTable<int>*a = new ScanTable<int>(5);
ASSERT_NO_THROW(Sort_table<int>*b = new Sort_table<int>(*a));
}
示例6: TEST_F
TEST_F(TokensTest, MakeFromPrimThatNeedsNoValue_NoValue_ExhaustivePass)
{
ASSERT_NO_THROW( Token{ PrimativeToken::EndOfFile } );
ASSERT_NO_THROW( Token{ PrimativeToken::LParen } );
ASSERT_NO_THROW( Token{ PrimativeToken::RParen } );
ASSERT_NO_THROW( Token{ PrimativeToken::Plus } );
ASSERT_NO_THROW( Token{ PrimativeToken::Minus } );
ASSERT_NO_THROW( Token{ PrimativeToken::Times } );
ASSERT_NO_THROW( Token{ PrimativeToken::Equal } );
ASSERT_NO_THROW( Token{ PrimativeToken::Assign } );
ASSERT_NO_THROW( Token{ PrimativeToken::If } );
ASSERT_NO_THROW( Token{ PrimativeToken::Then } );
ASSERT_NO_THROW( Token{ PrimativeToken::Else } );
ASSERT_NO_THROW( Token{ PrimativeToken::While } );
}
示例7: TEST_F
TEST_F( LoadScene_test,PatchTestConstraint)
{
ASSERT_TRUE(this->LoadScene("PatchTestConstraint.scn"));
ASSERT_TRUE(this->initScene("PatchTestConstraint.scn"));
ASSERT_NO_THROW(this->initScene("PatchTestConstraint.scn"));
}
示例8: TEST_F
TEST_F(ConfigTests, test_bad_config_update) {
std::string bad_json = "{\"options\": {},}";
ASSERT_NO_THROW(Config::getInstance().update({{"bad_source", bad_json}}));
}
示例9: TEST_F
TEST_F(lagi_option, get_existing_option) {
agi::Options opt(conf_ok, default_opt, agi::Options::FLUSH_SKIP);
ASSERT_NO_THROW(opt.Get("Valid"));
ASSERT_NO_THROW(opt.Get("Valid")->GetString());
EXPECT_STREQ("This is valid", opt.Get("Valid")->GetString().c_str());
}
示例10: TEST
TEST(ApplicationCWrapper, RunDoesNotFailWithNullPtr)
{
ASSERT_NO_THROW(lac_apprun(nullptr));
}
示例11: TEST
TEST(builder_test, empty_uri_doesnt_throw) {
network::uri_builder builder;
ASSERT_NO_THROW(builder.uri());
}
示例12: TEST
TEST(TParser, can_create_parser)
{
char st[6] = { '2', '+', '5', '*', '2', '\0' };
ASSERT_NO_THROW(TParser parser(st));
}