Skip to content

Commit 2a52860

Browse files
committed
[ci] fix format
Signed-off-by: 蔡略 <cailue@apache.org>
1 parent a124dcf commit 2a52860

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

tests/data/config/naive/clice.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ index_dir = "${workspace}/.clice/naive_index"
55

66
# test string pattern
77
[[rules]]
8-
patterns = "../*.cc"
8+
patterns = "**/**.cc"
99
append = "-std=c++114514"
1010
remove = "-std=c++17"
1111

1212
# test array pattern
1313
[[rules]]
14-
patterns = ["../*.ts", "../*.tsx"]
15-
append = ["--target=es6", "--tell-agent='我操大哥你别用 any '"]
14+
patterns = ["**/**.ts", "**/**.tsx"]
15+
append = ["--target=es6", "--tell-agent='wtf DONT USE any ANY in my codebase!'"]
1616
remove = ["--target=es5", "--allow-js"]
1717

1818
# test default

tests/unit/Server/Config.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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

Comments
 (0)