Formatter: Add another ObjC literal test.
authorNico Weber <nicolasweber@gmx.de>
Sun, 10 Feb 2013 20:39:05 +0000 (20:39 +0000)
committerNico Weber <nicolasweber@gmx.de>
Sun, 10 Feb 2013 20:39:05 +0000 (20:39 +0000)
(From http://clang.llvm.org/docs/ObjectiveCLiterals.html.)

llvm-svn: 174841

clang/unittests/Format/FormatTest.cpp

index 6d434ca..3760a3b 100644 (file)
@@ -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.
 }