()
| 69 | # Tests |
| 70 | #----------------------------------------------------------------------------- |
| 71 | def test_spaces(): |
| 72 | tests = [('', 0), |
| 73 | (' ', 1), |
| 74 | ('\n', 0), |
| 75 | (' \n', 1), |
| 76 | ('x', 0), |
| 77 | (' x', 1), |
| 78 | (' x',2), |
| 79 | (' x',4), |
| 80 | # Note: tabs are counted as a single whitespace! |
| 81 | ('\tx', 1), |
| 82 | ('\t x', 2), |
| 83 | ] |
| 84 | tt.check_pairs(isp.num_ini_spaces, tests) |
| 85 | |
| 86 | |
| 87 | def test_remove_comments(): |
nothing calls this directly
no outgoing calls
no test coverage detected