From 4b420c53d30a5e9950a1c2400d386d7c8bb2a4cb Mon Sep 17 00:00:00 2001 From: Joel Hock Date: Tue, 19 Dec 2017 00:16:21 -0600 Subject: [PATCH] add unit test --- src/project.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/project.cc b/src/project.cc index 236acb20..de7e5253 100644 --- a/src/project.cc +++ b/src/project.cc @@ -511,6 +511,14 @@ TEST_SUITE("Project") { "-Wno-unknown-warning-option"}); } + TEST_CASE("Implied binary") { + CheckFlags("/home/user", "/home/user/foo/bar.cc", + /* raw */ {"-DDONT_IGNORE_ME"}, + /* expected */ {"clang++", "-DDONT_IGNORE_ME", "-xc++", "-std=c++11", + "-resource-dir=/w/resource_dir/", + "-Wno-unknown-warning-option"}); + } + // Checks flag parsing for a random chromium file in comparison to what // YouCompleteMe fetches. TEST_CASE("ycm") {