problemscpp
A collection of my answers to algorithm problems in c++.
| 函数
leetcode::regular_expression_matching 命名空间参考

  1. 正则表达式匹配
更多...

class  Solution
 

函数

 TEST (regular_expression_matching, case1)
 
 TEST (regular_expression_matching, case2)
 
 TEST (regular_expression_matching, case3)
 
 TEST (regular_expression_matching, case4)
 

详细描述

  1. 正则表达式匹配

函数说明

◆ TEST() [1/4]

leetcode::regular_expression_matching::TEST ( regular_expression_matching  ,
case1   
)

在文件 leetcode_test.cpp3897 行定义.

3897 {
3898 ASSERT_FALSE(Solution::isMatch("aa", "a"));
3899 }

引用了 leetcode::regular_expression_matching::Solution::isMatch().

◆ TEST() [2/4]

leetcode::regular_expression_matching::TEST ( regular_expression_matching  ,
case2   
)

在文件 leetcode_test.cpp3901 行定义.

3901 {
3902 ASSERT_TRUE(Solution::isMatch("aa", "a*"));
3903 }

引用了 leetcode::regular_expression_matching::Solution::isMatch().

◆ TEST() [3/4]

leetcode::regular_expression_matching::TEST ( regular_expression_matching  ,
case3   
)

在文件 leetcode_test.cpp3905 行定义.

3905 {
3906 ASSERT_TRUE(Solution::isMatch("ab", ".*"));
3907 }

引用了 leetcode::regular_expression_matching::Solution::isMatch().

◆ TEST() [4/4]

leetcode::regular_expression_matching::TEST ( regular_expression_matching  ,
case4   
)

在文件 leetcode_test.cpp3909 行定义.

3909 {
3910 ASSERT_TRUE(Solution::isMatch("a", "ab*"));
3911 }

引用了 leetcode::regular_expression_matching::Solution::isMatch().