From: Jean Privat Date: Fri, 11 Feb 2011 21:11:30 +0000 (-0500) Subject: tests: use enum instead of universal X-Git-Tag: v0.4~8^2~2 X-Git-Url: http://nitlanguage.org tests: use enum instead of universal Signed-off-by: Jean Privat --- diff --git a/tests/base_attr_isset.nit b/tests/base_attr_isset.nit index bb60f8f..9df6bab 100644 --- a/tests/base_attr_isset.nit +++ b/tests/base_attr_isset.nit @@ -19,12 +19,12 @@ import end interface Object end -universal Int +enum Int fun output is intern fun +(o: Int): Int is intern end -universal Bool +enum Bool fun output is intern end diff --git a/tests/base_attr_nullable.nit b/tests/base_attr_nullable.nit index 8961bbb..b662cad 100644 --- a/tests/base_attr_nullable.nit +++ b/tests/base_attr_nullable.nit @@ -19,7 +19,7 @@ import end interface Object end -universal Int +enum Int fun output is intern fun +(o: Int): Int is intern end diff --git a/tests/base_attr_nullable_int.nit b/tests/base_attr_nullable_int.nit index d71916e..e1de585 100644 --- a/tests/base_attr_nullable_int.nit +++ b/tests/base_attr_nullable_int.nit @@ -19,7 +19,7 @@ import end interface Object end -universal Int +enum Int fun output is intern fun +(o: Int): Int is intern end diff --git a/tests/base_var_assignment_flow.nit b/tests/base_var_assignment_flow.nit index bd0be76..91bab93 100644 --- a/tests/base_var_assignment_flow.nit +++ b/tests/base_var_assignment_flow.nit @@ -20,11 +20,11 @@ interface Object fun output is abstract end -universal Int +enum Int redef fun output is intern end -universal Bool +enum Bool redef fun output is intern end diff --git a/tests/error_needed_method.nit b/tests/error_needed_method.nit index 30460d1..31454f1 100644 --- a/tests/error_needed_method.nit +++ b/tests/error_needed_method.nit @@ -22,7 +22,7 @@ end interface Discrete end -universal Int +enum Int special Discrete end @@ -32,7 +32,7 @@ end class String end -universal NativeString +enum NativeString end class Array[E]