make sure we keep the \n when removing a comment at the end of a line
()
| 19 | |
| 20 | |
| 21 | def test_removecomments(): |
| 22 | """make sure we keep the \n when removing a comment at the end of a line""" |
| 23 | |
| 24 | reduce = ReduceTest() |
| 25 | |
| 26 | filedata = [ |
| 27 | 'int i; // some integer\n', |
| 28 | 'int j;\n' |
| 29 | ] |
| 30 | |
| 31 | expected = [ |
| 32 | 'int i;\n', |
| 33 | 'int j;\n' |
| 34 | ] |
| 35 | |
| 36 | reduce.removecomments(filedata) |
| 37 | assert filedata == expected |
| 38 | |
| 39 | |
| 40 | def test_removedirectives(): |
nothing calls this directly
no test coverage detected