zekimazan / changedistiller

5 stars 19 forks source link

Added unit test for STATEMENT_PARENT_CHANGE #46 #68

Closed ghost closed 6 years ago

ghost commented 6 years ago

46 STATEMENT_PARENT_CHANGE checks if there is a statement that has different parent than before. In other words, it checks if all the statements are in the same block or not by comparing with other file.

To check this test, i've added two test files and moved the statement "foobar = foo + bar;" to outside of if block, and i kept the rest as the same.