@@ -28,32 +28,6 @@ mod tests {
2828 result
2929 }
3030
31- fn make_issue_1028_repeated_prefix_guard_chain_content ( ) -> String {
32- let mut content = String :: from ( "V_cfad19afc42b = V_cfad19afc42b or {}\n " ) ;
33- for i in 0 ..600 {
34- let table_key = 3_121_212 ;
35- let field_key = 1_111_112 + i;
36- content. push_str ( & format ! (
37- "if V_cfad19afc42b[{table_key}] and V_cfad19afc42b[{table_key}][{field_key}] then\n V_cfad19afc42b[{table_key}][{field_key}][\" __STR_{i}__\" ] = \" __STR_{}__\" \n end\n \n " ,
38- i + 1 ,
39- ) ) ;
40- }
41- content
42- }
43-
44- #[ gtest]
45- fn test_1 ( ) -> Result < ( ) > {
46- let mut ws = ProviderVirtualWorkspace :: new ( ) ;
47- let _ = ws. check_semantic_token (
48- r#"
49- ---@class Cast1
50- ---@field a string # test
51- "# ,
52- vec ! [ ] ,
53- ) ;
54- Ok ( ( ) )
55- }
56-
5731 #[ gtest]
5832 fn test_require_alias_prefix_is_namespace_in_index_expr ( ) -> Result < ( ) > {
5933 let mut ws = ProviderVirtualWorkspace :: new ( ) ;
@@ -148,6 +122,21 @@ m.foo()
148122 Ok ( ( ) )
149123 }
150124
125+ #[ cfg( feature = "slow-tests" ) ]
126+ fn make_issue_1028_repeated_prefix_guard_chain_content ( ) -> String {
127+ let mut content = String :: from ( "V_cfad19afc42b = V_cfad19afc42b or {}\n " ) ;
128+ for i in 0 ..600 {
129+ let table_key = 3_121_212 ;
130+ let field_key = 1_111_112 + i;
131+ content. push_str ( & format ! (
132+ "if V_cfad19afc42b[{table_key}] and V_cfad19afc42b[{table_key}][{field_key}] then\n V_cfad19afc42b[{table_key}][{field_key}][\" __STR_{i}__\" ] = \" __STR_{}__\" \n end\n \n " ,
133+ i + 1 ,
134+ ) ) ;
135+ }
136+ content
137+ }
138+
139+ #[ cfg( feature = "slow-tests" ) ]
151140 #[ gtest]
152141 fn test_issue_1028_i18n_semantic_tokens_repeated_prefix_guard_chain ( ) -> Result < ( ) > {
153142 let mut ws = ProviderVirtualWorkspace :: new ( ) ;
0 commit comments