mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-10-06 03:53:58 +00:00
25 lines
1.0 KiB
Diff
25 lines
1.0 KiB
Diff
Index: llvm-toolchain_3.3~svn176083/clang/unittests/Tooling/CompilationDatabaseTest.cpp
|
|
===================================================================
|
|
--- llvm-toolchain_3.3~svn176083.orig/clang/unittests/Tooling/CompilationDatabaseTest.cpp 2013-01-12 20:30:44.000000000 +0100
|
|
+++ llvm-toolchain_3.3~svn176083/clang/unittests/Tooling/CompilationDatabaseTest.cpp 2013-02-26 14:10:45.000000000 +0100
|
|
@@ -302,19 +302,6 @@
|
|
return FoundCommand.CommandLine;
|
|
}
|
|
|
|
-TEST(unescapeJsonCommandLine, ReturnsEmptyArrayOnEmptyString) {
|
|
- std::vector<std::string> Result = unescapeJsonCommandLine("");
|
|
- EXPECT_TRUE(Result.empty());
|
|
-}
|
|
-
|
|
-TEST(unescapeJsonCommandLine, SplitsOnSpaces) {
|
|
- std::vector<std::string> Result = unescapeJsonCommandLine("a b c");
|
|
- ASSERT_EQ(3ul, Result.size());
|
|
- EXPECT_EQ("a", Result[0]);
|
|
- EXPECT_EQ("b", Result[1]);
|
|
- EXPECT_EQ("c", Result[2]);
|
|
-}
|
|
-
|
|
TEST(unescapeJsonCommandLine, MungesMultipleSpaces) {
|
|
std::vector<std::string> Result = unescapeJsonCommandLine(" a b ");
|
|
ASSERT_EQ(2ul, Result.size());
|