| Total Complexity | 5 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| 1 | from bears.c_languages.IndentBear import IndentBear |
||
| 10 | }""".split("\n") |
||
| 11 | |||
| 12 | test_file2 = """ |
||
| 13 | int |
||
| 14 | main () |
||
| 15 | { |
||
| 16 | return 0; |
||
| 17 | }""".split("\n") |
||
| 18 | |||
| 19 | |||
| 20 | test_file3 = """ |
||
| 21 | int |
||
| 22 | main () |
||
| 23 | { |
||
| 24 | \treturn 0; |
||
| 25 | }""".split("\n") |
||
| 26 | |||
| 27 | |||
| 28 | test_file4 = """ |
||
| 29 | int main() { |
||
| 30 | return 0; |
||
| 31 | }""".split("\n") |
||
| 32 | |||
| 33 | |||
| 34 | IndentBear1Test = verify_local_bear(IndentBear, |
||
| 35 | valid_files=(test_file1,), |
||
| 36 | invalid_files=(test_file3,), |
||
| 37 | settings={"use_spaces": "true", |
||
| 38 | "max_line_length": "80"}) |
||
| 39 | |||
| 40 | |||
| 41 | IndentBear2Test = verify_local_bear(IndentBear, |
||
| 42 | valid_files=(test_file3,), |
||
| 43 | invalid_files=(), |
||
| 44 | settings={"use_spaces": "nope", |
||
| 45 | "max_line_length": "80"}) |
||
| 61 |