]> granicus.if.org Git - clang/commitdiff
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.)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174841 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Format/FormatTest.cpp

index 6d434ca4643da00087b5f094af38d82a34bb8e4d..3760a3b19f96e06885b71fe15f98faffb835f3eb 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.
 }