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

class  Solution
 

函数

 TEST (remove_extra, case1)
 
 TEST (remove_extra, case2)
 

函数说明

◆ TEST() [1/2]

lintcode::remove_extra::TEST ( remove_extra  ,
case1   
)

在文件 lintcode_test.cpp42 行定义.

42 {
43 string input = "The sky is blue";
44 ASSERT_EQ("The sky is blue", Solution::removeExtra(input));
45 }

引用了 lintcode::remove_extra::Solution::removeExtra().

◆ TEST() [2/2]

lintcode::remove_extra::TEST ( remove_extra  ,
case2   
)

在文件 lintcode_test.cpp47 行定义.

47 {
48 string input = " low ercase ";
49 ASSERT_EQ("low ercase", Solution::removeExtra(input));
50 }

引用了 lintcode::remove_extra::Solution::removeExtra().