1- #include " Test/Test.h"
21#include " Server/Server.h"
2+ #include " Test/Test.h"
33
44#include < string>
55
@@ -14,17 +14,17 @@ suite<"Config"> config = [] {
1414 const auto res = conf.parse (NAIVE_WORKSPACE);
1515
1616 expect (that % res.has_value () == true );
17- expect (that % conf.workspace == " clice " );
17+ expect (that % conf.workspace == NAIVE_WORKSPACE );
1818
19- const auto & proj = conf.project ;
19+ const auto & proj = conf.project ;
2020
2121 expect (that % proj.cache_dir == " ${workspace}/.clice/naive_cache" );
2222 expect (that % proj.index_dir == " ${workspace}/.clice/naive_index" );
2323
2424 expect (that % conf.rules .size () == 3 );
25- const auto & str_rule = conf.rules [0 ];
26- const auto & arr_rule = conf.rules [1 ];
27- const auto & empty_rule = conf.rules [2 ];
25+ const auto & str_rule = conf.rules [0 ];
26+ const auto & arr_rule = conf.rules [1 ];
27+ const auto & empty_rule = conf.rules [2 ];
2828
2929 expect (that % str_rule.patterns .size () == 1 );
3030 expect (that % str_rule.patterns [0 ] == " **/*.cc" );
@@ -34,11 +34,11 @@ suite<"Config"> config = [] {
3434 expect (that % str_rule.remove [0 ] == " -foo" );
3535
3636 expect (that % arr_rule.patterns .size () == 2 );
37- expect (that % arr_rule.patterns [0 ] == " .. /*.ts" );
38- expect (that % arr_rule.patterns [1 ] == " .. /*.tsx" );
37+ expect (that % arr_rule.patterns [0 ] == " ** /*.ts" );
38+ expect (that % arr_rule.patterns [1 ] == " ** /*.tsx" );
3939 expect (that % arr_rule.append .size () == 2 );
4040 expect (that % arr_rule.append [0 ] == " --target=es6" );
41- expect (that % arr_rule.append [1 ] == " --tell-agent='我操大哥你别用 any 啊 '" );
41+ expect (that % arr_rule.append [1 ] == " --tell-agent='wtf DONT USE any ANY in my codebase! '" );
4242 expect (that % arr_rule.remove .size () == 2 );
4343 expect (that % arr_rule.remove [0 ] == " --target=es5" );
4444 expect (that % arr_rule.remove [1 ] == " --allow-js" );
@@ -49,5 +49,5 @@ suite<"Config"> config = [] {
4949 };
5050};
5151
52- } // namespace
53- } // namespace clice::testing
52+ } // namespace
53+ } // namespace clice::testing
0 commit comments