|
217 | 217 | # Others |
218 | 218 | @test !has_trailing_spaces(cleaned_ptx) |
219 | 219 | @test count(r"\R{2,}", cleaned_ptx) == 0 # no empty lines |
| 220 | + @test count('\t', cleaned_ptx) == 0 # no tabs |
220 | 221 |
|
221 | 222 | # Make sure we didn't remove any instruction by mistake |
222 | 223 | @test count(';', ptx_sample) == count(';', cleaned_ptx) |
|
239 | 240 | @test !has_trailing_spaces(cleaned_ptx) |
240 | 241 | @test count(r"\R{2,}", cleaned_ptx) == 0 # no empty lines |
241 | 242 | @test !endswith(cleaned_ptx, r"\R") # no trailing newlines |
| 243 | + @test count('\t', cleaned_ptx) == 0 # no tabs |
242 | 244 |
|
243 | 245 | # Make sure we didn't remove any instruction by mistake |
244 | 246 | @test count(';', ptx_sample) == count(';', cleaned_ptx) |
|
260 | 262 | @test !has_trailing_spaces(cleaned_ptx) |
261 | 263 | @test count(r"\R{2,}", cleaned_ptx) == 0 # no empty lines |
262 | 264 | @test !endswith(cleaned_ptx, r"\R") # no trailing newlines |
| 265 | + @test count('\t', cleaned_ptx) == 0 # no tabs |
263 | 266 |
|
264 | 267 | # Make sure we didn't remove any instruction by mistake |
265 | 268 | @test count(';', ptx_sample) == count(';', cleaned_ptx) |
|
284 | 287 | # Others |
285 | 288 | @test !has_trailing_spaces(cleaned_sass) |
286 | 289 | @test !endswith(cleaned_sass, r"\R") # no trailing newlines |
| 290 | + @test count('\t', cleaned_sass) == 0 # no tabs |
287 | 291 |
|
288 | 292 | # Location comments should be removed with `dbinfo=false` |
289 | 293 | cleaned_sass_no_loc = CDC.cleanup_code(Val(:sass), sass_sample, false) |
|
321 | 325 | @test !has_trailing_spaces(cleaned_gcn) |
322 | 326 | @test count(r"\R{2,}", cleaned_gcn) == 0 # no empty lines |
323 | 327 | @test !endswith(cleaned_gcn, r"\R") # no trailing newlines |
| 328 | + @test count('\t', cleaned_gcn) == 0 # no tabs |
324 | 329 | end |
325 | 330 | end |
326 | 331 |
|
|
345 | 350 | @test !has_trailing_spaces(cleaned_spirv) |
346 | 351 | @test count(r"\R{2,}", cleaned_spirv) == 0 # no empty lines |
347 | 352 | @test !endswith(cleaned_spirv, r"\R") # no trailing newlines |
| 353 | + @test count('\t', cleaned_spirv) == 0 # no tabs |
348 | 354 | end |
349 | 355 | end |
350 | 356 |
|
|
0 commit comments