Procházet zdrojové kódy

Added a test that adds two booleans to an array

Benoit Blanchon před 11 roky
rodič
revize
3d4f0f741d
1 změnil soubory, kde provedl 8 přidání a 0 odebrání
  1. 8 0
      JsonGeneratorTests/JsonArrayTests.cpp

+ 8 - 0
JsonGeneratorTests/JsonArrayTests.cpp

@@ -78,6 +78,14 @@ namespace JsonGeneratorTests
             AssertJsonIs("[false]");
         }
 
+        TEST_METHOD(AddTwoBooleans)
+        {
+            arr.add(false);
+            arr.add(true);
+
+            AssertJsonIs("[false,true]");
+        }
+
         void AssertJsonIs(const char* expected)
         {      
             char buffer[256];