C++: Rename test.json to test_cpp.json
authorPetri Lehtinen <petri@digip.org>
Thu, 4 Feb 2010 18:49:01 +0000 (20:49 +0200)
committerPetri Lehtinen <petri@digip.org>
Thu, 4 Feb 2010 18:49:01 +0000 (20:49 +0200)
test/suites/api/test_cpp.cpp
test/suites/api/test_cpp.json [moved from test/suites/api/test.json with 99% similarity]

index 5d3964a..8a3b356 100644 (file)
@@ -1,6 +1,5 @@
 #include <iostream>
 #include <iomanip>
 #include <iostream>
 #include <iomanip>
-#include <malloc.h>
 
 #include "jansson.hpp"
 
 
 #include "jansson.hpp"
 
@@ -23,7 +22,7 @@
 #define ASSERT_FALSE(p, m) ASSERT_OP(p, true, !=, m)
 
 int main() {
 #define ASSERT_FALSE(p, m) ASSERT_OP(p, true, !=, m)
 
 int main() {
-    json::Value e1(json::load_file("suites/api/test.json"));
+    json::Value e1(json::load_file("suites/api/test_cpp.json"));
     json::Value e2(e1);
     json::Value e3;
     json::Value e4(json::load_string("{\"foo\": true, \"bar\": \"test\"}"));
     json::Value e2(e1);
     json::Value e3;
     json::Value e4(json::load_string("{\"foo\": true, \"bar\": \"test\"}"));
similarity index 99%
rename from test/suites/api/test.json
rename to test/suites/api/test_cpp.json
index 9eea6ad..d31a395 100644 (file)
@@ -1,5 +1,5 @@
 {"web-app": {
 {"web-app": {
-  "servlet": [   
+  "servlet": [
     {
       "servlet-name": "cofaxCDS",
       "servlet-class": "org.cofax.cds.CDSServlet",
     {
       "servlet-name": "cofaxCDS",
       "servlet-class": "org.cofax.cds.CDSServlet",
@@ -55,7 +55,7 @@
     {
       "servlet-name": "cofaxAdmin",
       "servlet-class": "org.cofax.cds.AdminServlet"},
     {
       "servlet-name": "cofaxAdmin",
       "servlet-class": "org.cofax.cds.AdminServlet"},
+
     {
       "servlet-name": "fileServlet",
       "servlet-class": "org.cofax.cds.FileServlet"},
     {
       "servlet-name": "fileServlet",
       "servlet-class": "org.cofax.cds.FileServlet"},
@@ -82,7 +82,7 @@
     "cofaxAdmin": "/admin/*",
     "fileServlet": "/static/*",
     "cofaxTools": "/tools/*"},
     "cofaxAdmin": "/admin/*",
     "fileServlet": "/static/*",
     "cofaxTools": "/tools/*"},
+
   "taglib": {
     "taglib-uri": "cofax.tld",
     "taglib-location": "/WEB-INF/tlds/cofax.tld"}}}
   "taglib": {
     "taglib-uri": "cofax.tld",
     "taglib-location": "/WEB-INF/tlds/cofax.tld"}}}