tests: Fix tests
[nit.git] / src / doc / templates / tests / test_json_commands.sav / test_cmd_call.res
index 0b60952..087789a 100644 (file)
@@ -1,6 +1,6 @@
 {
        "results": [{
-               "name": "init",
+               "name": "defaultinit",
                "namespace": [{
                        "name": "test_prog",
                        "synopsis": "Test program for model tools."
@@ -8,18 +8,48 @@
                        "name": "Character",
                        "synopsis": "Characters can be played by both the human or the machine."
                }, "$", {
-                       "name": "Object",
-                       "synopsis": "Root of everything."
-               }, "::", {
-                       "name": "init"
+                       "name": "defaultinit"
                }],
                "class_name": "MMethodDef",
-               "full_name": "test_prog$Character$Object::init",
+               "full_name": "test_prog$Character$defaultinit",
                "visibility": "public",
-               "modifiers": ["redef", "init"],
+               "modifiers": ["init"],
+               "is_intro": true,
                "msignature": {
-                       "arity": 0,
-                       "mparameters": [],
+                       "arity": 4,
+                       "mparameters": [{
+                               "is_vararg": false,
+                               "name": "race",
+                               "mtype": {
+                                       "name": "Race",
+                                       "synopsis": "Race determines basic characteristics and what the character will be able to do in life.",
+                                       "html_synopsis": "<span class=\"synopsis nitdoc\">Race determines basic characteristics and what the character will be able to do in life.</span>"
+                               }
+                       }, {
+                               "is_vararg": false,
+                               "name": "name",
+                               "mtype": {
+                                       "name": "String",
+                                       "synopsis": "Strings (there is no chars...).",
+                                       "html_synopsis": "<span class=\"synopsis nitdoc\">Strings (there is no chars...).</span>"
+                               }
+                       }, {
+                               "is_vararg": false,
+                               "name": "age",
+                               "mtype": {
+                                       "name": "Int",
+                                       "synopsis": "Some services about Integers.",
+                                       "html_synopsis": "<span class=\"synopsis nitdoc\">Some services about Integers.</span>"
+                               }
+                       }, {
+                               "is_vararg": false,
+                               "name": "sex",
+                               "mtype": {
+                                       "name": "Bool",
+                                       "synopsis": "Booleans, `true` or `false`.",
+                                       "html_synopsis": "<span class=\"synopsis nitdoc\">Booleans, <code class=\"nitcode\"><span class=\"nitcode\"><span class=\"line\"><span class=\"nc_k\">true</span></span></span></code> or <code class=\"nitcode\"><span class=\"nitcode\"><span class=\"line\"><span class=\"nc_k\">false</span></span></span></code>.</span>"
+                               }
+                       }],
                        "return_mtype": null
                }
        }, {