r174841 - Formatter: Add another ObjC literal test.
Nico Weber
nicolasweber at gmx.de
Sun Feb 10 12:39:05 PST 2013
Author: nico
Date: Sun Feb 10 14:39:05 2013
New Revision: 174841
URL: http://llvm.org/viewvc/llvm-project?rev=174841&view=rev
Log:
Formatter: Add another ObjC literal test.
(From http://clang.llvm.org/docs/ObjectiveCLiterals.html.)
Modified:
cfe/trunk/unittests/Format/FormatTest.cpp
Modified: cfe/trunk/unittests/Format/FormatTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Format/FormatTest.cpp?rev=174841&r1=174840&r2=174841&view=diff
==============================================================================
--- cfe/trunk/unittests/Format/FormatTest.cpp (original)
+++ cfe/trunk/unittests/Format/FormatTest.cpp Sun Feb 10 14:39:05 2013
@@ -2559,6 +2559,8 @@ TEST_F(FormatTest, ObjCLiterals) {
verifyFormat("NSLog(@\"%@\", @{ @1 : @2, @2 : @3 }[@1]);");
verifyFormat(
"NSDictionary *masses = @{ @\"H\" : @1.0078, @\"He\" : @4.0026 };");
+ verifyFormat(
+ "NSDictionary *settings = @{ AVEncoderKey : @(AVAudioQualityMax) };");
// FIXME: Nested and multi-line array and dictionary literals need more work.
}
More information about the cfe-commits
mailing list