gtest_match.cpp
Go to the documentation of this file.
1 #include <gtest/gtest.h>
3 
4 TEST(Match, Match)
5 {
6  ASSERT_TRUE(wildcards::match("prefix/suffix", "*/suffix"));
7  ASSERT_TRUE(wildcards::match("prefix/suffix", "prefix/*"));
8  ASSERT_TRUE(wildcards::match("prefix/suffix", "pre*fix"));
9 
10  ASSERT_FALSE(wildcards::match("prefix/suffix", "*/suff"));
11  ASSERT_FALSE(wildcards::match("prefix/suffix", "pre/*"));
12  ASSERT_FALSE(wildcards::match("prefix/suffix", "pre*fi"));
13  ASSERT_FALSE(wildcards::match("prefix/suffix", "re*fix"));
14 }
wildcards.hpp
wildcards::match
constexpr full_match_result< const_iterator_t< Sequence >, const_iterator_t< Pattern > > match(Sequence &&sequence, Pattern &&pattern, const cards< container_item_t< Pattern >> &c=cards< container_item_t< Pattern >>(), const EqualTo &equal_to=EqualTo())
Definition: wildcards.hpp:1606
TEST
TEST(Match, Match)
Definition: gtest_match.cpp:4


behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Fri Jun 28 2024 02:20:07