src: migrate nitunits to annotations
authorAlexandre Terrasa <alexandre@moz-code.org>
Tue, 6 Jun 2017 05:17:38 +0000 (01:17 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Wed, 6 Sep 2017 22:58:06 +0000 (18:58 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/compiler/test_coloring.nit
src/model/test_model_json.nit

index 867afcf..0fc7008 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-module test_coloring is test_suite
+module test_coloring is test
 
-import test_suite
 import coloring
 
 class TestPOSetColorer
-       super TestSuite
+       test
 
-       fun test_ids_strictly_positive do
+       fun test_ids_strictly_positive is test do
                var poset = new POSet[String]
                poset.add_node "A"
 
index 105c493..a0ead05 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-module test_model_json is test_suite
+module test_model_json is test
 
-import test_suite
 import model_json
 import frontend
 
 class TestModelSerialization
-       super TestSuite
+       test
 
        var suite_path: String = "NIT_TESTING_PATH".environ
        var lib_path: String = "{suite_path.dirname}/../../tests/test_prog"
@@ -35,7 +34,7 @@ class TestModelSerialization
                return model
        end
 
-       fun test_refs_to_full_json do
+       fun test_refs_to_full_json is test do
                var mentities = new Array[MEntity]
                mentities.add model.mpackages.first
                mentities.add model.mmodules.first
@@ -45,13 +44,13 @@ class TestModelSerialization
                end
        end
 
-       fun test_packages_to_full_json do
+       fun test_packages_to_full_json is test do
                for mentity in model.mpackages do
                        print mentity.to_pretty_full_json
                end
        end
 
-       fun test_groups_to_full_json do
+       fun test_groups_to_full_json is test do
                for mpackage in model.mpackages do
                        for mentity in mpackage.mgroups do
                                print mentity.to_pretty_full_json
@@ -59,19 +58,19 @@ class TestModelSerialization
                end
        end
 
-       fun test_modules_to_full_json do
+       fun test_modules_to_full_json is test do
                for mentity in model.mmodules do
                        print mentity.to_pretty_full_json
                end
        end
 
-       fun test_classes_to_full_json do
+       fun test_classes_to_full_json is test do
                for mentity in model.mclasses do
                        print mentity.to_pretty_full_json
                end
        end
 
-       fun test_classdefs_to_full_json do
+       fun test_classdefs_to_full_json is test do
                for mclass in model.mclasses do
                        for mentity in mclass.mclassdefs do
                                print mentity.to_pretty_full_json
@@ -79,13 +78,13 @@ class TestModelSerialization
                end
        end
 
-       fun test_props_to_full_json do
+       fun test_props_to_full_json is test do
                for mentity in model.mproperties do
                        print mentity.to_pretty_full_json
                end
        end
 
-       fun test_propdefs_to_full_json do
+       fun test_propdefs_to_full_json is test do
                for mprop in model.mproperties do
                        for mentity in mprop.mpropdefs do
                                print mentity.to_pretty_full_json