From 8e7b8cdbd213a47383c448dfe378aeecb0068c02 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Wed, 27 May 2015 11:21:49 -0400 Subject: [PATCH] tests: update other tests related to init with setters Signed-off-by: Jean Privat --- tests/base_attr4.nit | 10 ++++++++-- tests/sav/base_attr4.res | 2 +- tests/sav/base_attr4_alt1.res | 2 +- tests/sav/base_attr4_alt2.res | 2 +- tests/sav/error_class_glob.res | 11 +++++++++++ 5 files changed, 22 insertions(+), 5 deletions(-) diff --git a/tests/base_attr4.nit b/tests/base_attr4.nit index b8f02dc..1b88711 100644 --- a/tests/base_attr4.nit +++ b/tests/base_attr4.nit @@ -31,9 +31,15 @@ end class C super B redef fun foo: Int do return 100 - redef fun bar=(i: Int) do i.output + redef fun bar=(i: Int) do + super + i.output + end redef fun baz: Int do return 400 - redef fun baz=(i: Int) do i.output + redef fun baz=(i: Int) do + super + i.output + end end var a = new A diff --git a/tests/sav/base_attr4.res b/tests/sav/base_attr4.res index 635a8c2..3278c31 100644 --- a/tests/sav/base_attr4.res +++ b/tests/sav/base_attr4.res @@ -9,6 +9,6 @@ 100 200 -30 +200 300 400 diff --git a/tests/sav/base_attr4_alt1.res b/tests/sav/base_attr4_alt1.res index 5d77e90..2fa9ce5 100644 --- a/tests/sav/base_attr4_alt1.res +++ b/tests/sav/base_attr4_alt1.res @@ -1 +1 @@ -alt/base_attr4_alt1.nit:40,3--5: Error: method `foo=` does not exists in `A`. +alt/base_attr4_alt1.nit:46,3--5: Error: method `foo=` does not exists in `A`. diff --git a/tests/sav/base_attr4_alt2.res b/tests/sav/base_attr4_alt2.res index 30b0f43..2f0440d 100644 --- a/tests/sav/base_attr4_alt2.res +++ b/tests/sav/base_attr4_alt2.res @@ -1 +1 @@ -alt/base_attr4_alt2.nit:43,3--5: Error: method `bar` does not exists in `A`. +alt/base_attr4_alt2.nit:49,3--5: Error: method `bar` does not exists in `A`. diff --git a/tests/sav/error_class_glob.res b/tests/sav/error_class_glob.res index 38a9af9..2fd90b2 100644 --- a/tests/sav/error_class_glob.res +++ b/tests/sav/error_class_glob.res @@ -1 +1,12 @@ +../lib/standard/kernel.nit:24,1--95,3: Error: `kernel#Object` does not specialize `module_0#Object`. Possible duplication of the root class `Object`? ../lib/standard/kernel.nit:97,1--111,3: Error: `kernel#Sys` does not specialize `module_0#Object`. Possible duplication of the root class `Object`? +../lib/standard/kernel.nit:124,1--182,3: Error: `kernel#Comparable` does not specialize `module_0#Object`. Possible duplication of the root class `Object`? +../lib/standard/kernel.nit:184,1--221,3: Error: `kernel#Discrete` does not specialize `module_0#Object`. Possible duplication of the root class `Object`? +../lib/standard/kernel.nit:223,1--240,3: Error: `kernel#Cloneable` does not specialize `module_0#Object`. Possible duplication of the root class `Object`? +../lib/standard/kernel.nit:242,1--297,3: Error: `kernel#Numeric` does not specialize `module_0#Object`. Possible duplication of the root class `Object`? +../lib/standard/kernel.nit:303,1--326,3: Error: `kernel#Bool` does not specialize `module_0#Object`. Possible duplication of the root class `Object`? +../lib/standard/kernel.nit:328,1--410,3: Error: `kernel#Float` does not specialize `module_0#Object`. Possible duplication of the root class `Object`? +../lib/standard/kernel.nit:412,1--514,3: Error: `kernel#Byte` does not specialize `module_0#Object`. Possible duplication of the root class `Object`? +../lib/standard/kernel.nit:516,1--707,3: Error: `kernel#Int` does not specialize `module_0#Object`. Possible duplication of the root class `Object`? +../lib/standard/kernel.nit:709,1--849,3: Error: `kernel#Char` does not specialize `module_0#Object`. Possible duplication of the root class `Object`? +../lib/standard/kernel.nit:851,1--858,3: Error: `kernel#Pointer` does not specialize `module_0#Object`. Possible duplication of the root class `Object`? -- 1.7.9.5