From d9eb2d1401a21e6771d5ce720df03b59d819a807 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Thu, 20 Mar 2014 06:28:52 +0000 Subject: Object: Don't double-escape empty hexdata We would emit a pair of double quotes inside a pair of single quotes. Just use a pair of single quotes. llvm-svn: 204312 --- llvm/unittests/Object/YAMLTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/unittests/Object/YAMLTest.cpp') diff --git a/llvm/unittests/Object/YAMLTest.cpp b/llvm/unittests/Object/YAMLTest.cpp index 3ae92ae1bae..1eb1113ae6b 100644 --- a/llvm/unittests/Object/YAMLTest.cpp +++ b/llvm/unittests/Object/YAMLTest.cpp @@ -34,5 +34,5 @@ TEST(ObjectYAML, BinaryRef) { llvm::raw_svector_ostream OS(Buf); yaml::Output YOut(OS); YOut << BH; - EXPECT_NE(OS.str().find("\"\""), StringRef::npos); + EXPECT_NE(OS.str().find("''"), StringRef::npos); } -- cgit v1.2.3