tests: Fix tests
[nit.git] / src / doc / commands / tests / test_commands_http.nit
index a08854c..1f51238 100644 (file)
@@ -45,7 +45,7 @@ class TestCommandsHttp
        end
 
        fun test_cmd_http_entity_not_found is test do
-               var req = new_request("/Characterzzz")
+               var req = new_request("/Characterz")
                var cmd = new CmdEntity(test_model)
                var res = cmd.http_init(req)
                assert res isa ErrorMEntityNotFound
@@ -205,7 +205,7 @@ class TestCommandsHttp
                var cmd = new CmdFeatures(test_model)
                var res = cmd.http_init(req)
                assert res isa CmdSuccess
-               assert cmd.results.as(not null).length == 3
+               assert cmd.results.as(not null).length == 4
        end
 
        # CmdLinearization
@@ -215,7 +215,7 @@ class TestCommandsHttp
                var cmd = new CmdLinearization(test_model, test_main)
                var res = cmd.http_init(req)
                assert res isa CmdSuccess
-               assert cmd.results.as(not null).length == 10
+               assert cmd.results.as(not null).length == 9
        end
 
        fun test_cmd_http_lin_no_lin is test do