diff --git a/tests/unit/clangTests.d b/tests/unit/clangTests.d index 012a7ff0..fba41073 100644 --- a/tests/unit/clangTests.d +++ b/tests/unit/clangTests.d @@ -67,12 +67,7 @@ unittest assert(locations[8].path == "tests/functional/include/subfile3.h"); assert(locations[9].path == "tests/functional/include/file.h"); - version (Windows) - enum expectedOffset = 58; - else - enum expectedOffset = 50; - - assert(locations[7].offset == expectedOffset); + assert(locations[7].offset == 50); } // Test TranslationUnit.includeLocations - a case without includes. @@ -136,27 +131,13 @@ unittest query(translUnit.location("tests/functional/include/file.h", 78)) < query(translUnit.location("tests/functional/include/file.h", 79))); - { - version (Windows) - enum offset = 89; - else - enum offset = 76; - - assert( - query(translUnit.location("tests/functional/include/subfile3.h", 1)) < - query(translUnit.location("tests/functional/include/file.h", offset))); - } - - { - version (Windows) - enum offset = 88; - else - enum offset = 75; - - assert( - query(translUnit.location("tests/functional/include/subfile3.h", 1)) > - query(translUnit.location("tests/functional/include/file.h", offset))); - } + assert( + query(translUnit.location("tests/functional/include/subfile3.h", 1)) < + query(translUnit.location("tests/functional/include/file.h", 76))); + + assert( + query(translUnit.location("tests/functional/include/subfile3.h", 1)) > + query(translUnit.location("tests/functional/include/file.h", 75))); } // Test TranslationUnit.allInOrder.