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

class  Solution
 

函数

 TEST (license_key_formatting, case1)
 
 TEST (license_key_formatting, case2)
 

函数说明

◆ TEST() [1/2]

lintcode::license_key_formatting::TEST ( license_key_formatting  ,
case1   
)

在文件 lintcode_test.cpp9 行定义.

9 {
10 auto s = string("5F3Z-2e-9-w");
11 ASSERT_EQ("5F3Z-2E9W", Solution::licenseKeyFormatting(s, 4));
12 }

引用了 lintcode::license_key_formatting::Solution::licenseKeyFormatting().

◆ TEST() [2/2]

lintcode::license_key_formatting::TEST ( license_key_formatting  ,
case2   
)

在文件 lintcode_test.cpp14 行定义.

14 {
15 auto s = string("2-5g-3-J");
16 ASSERT_EQ("2-5G-3J", Solution::licenseKeyFormatting(s, 2));
17 }

引用了 lintcode::license_key_formatting::Solution::licenseKeyFormatting().