From: Jean Privat Date: Thu, 31 May 2018 15:34:48 +0000 (-0400) Subject: tests: update nitlight with new links X-Git-Url: http://nitlanguage.org tests: update nitlight with new links Signed-off-by: Jean Privat --- diff --git a/tests/sav/nitlight_args1.res b/tests/sav/nitlight_args1.res index cf89e02..e7f3ab8 100644 --- a/tests/sav/nitlight_args1.res +++ b/tests/sav/nitlight_args1.res @@ -27,41 +27,41 @@ end class A - init do 5.output - fun run do 6.output + init do 5.output + fun run do 6.output end class B - var val: Int - init(v: Int) + var val: Int + init(v: Int) do - 7.output - self.val = v + 7.output + self.val = v end fun run do val.output end class C - var val1: Int - var val2: Int = 10 + var val1: Int + var val2: Int = 10 end -fun foo do 2.output -fun bar(i: Int) do i.output -fun baz: Int do return 4 +fun foo do 2.output +fun bar(i: Int) do i.output +fun baz: Int do return 4 -1.output +1.output foo -bar(3) +bar(3) baz.output -var a = new A +var a = new A a.run -var b = new B(8) +var b = new B(8) b.run -var c = new C(9) +var c = new C(9) c.val1.output c.val2.output \ No newline at end of file diff --git a/tests/sav/nitlight_args2.res b/tests/sav/nitlight_args2.res index 9a585f7..204c980 100644 --- a/tests/sav/nitlight_args2.res +++ b/tests/sav/nitlight_args2.res @@ -67,41 +67,41 @@ end class A - init do 5.output - fun run do 6.output + init do 5.output + fun run do 6.output end class B - var val: Int - init(v: Int) + var val: Int + init(v: Int) do - 7.output - self.val = v + 7.output + self.val = v end fun run do val.output end class C - var val1: Int - var val2: Int = 10 + var val1: Int + var val2: Int = 10 end -fun foo do 2.output -fun bar(i: Int) do i.output -fun baz: Int do return 4 +fun foo do 2.output +fun bar(i: Int) do i.output +fun baz: Int do return 4 -1.output +1.output foo -bar(3) +bar(3) baz.output -var a = new A +var a = new A a.run -var b = new B(8) +var b = new B(8) b.run -var c = new C(9) +var c = new C(9) c.val1.output c.val2.output diff --git a/tests/sav/nitlight_args3.res b/tests/sav/nitlight_args3.res index 1c71ab2..f1c2d87 100644 --- a/tests/sav/nitlight_args3.res +++ b/tests/sav/nitlight_args3.res @@ -1,10 +1,10 @@ - 7.output - self.val = v + 7.output + self.val = v end fun run do val.output end class C - var val1: Int - var val2: Int = 10 + var val1: Int + var val2: Int = 10 \ No newline at end of file diff --git a/tests/sav/nitlight_args5.res b/tests/sav/nitlight_args5.res index aa14ea5..90f6ed3 100644 --- a/tests/sav/nitlight_args5.res +++ b/tests/sav/nitlight_args5.res @@ -56,54 +56,54 @@ import end -interface Object +interface Object end -enum Bool +enum Bool end -enum Int - fun output is intern +enum Int + fun output is intern end -class A - init do 5.output - fun run do 6.output +class A + init do 5.output + fun run do 6.output end -class B - var val: Int - init(v: Int) +class B + var val: Int + init(v: Int) do - 7.output - self.val = v + 7.output + self.val = v end - fun run do val.output + fun run do val.output end -class C - var val1: Int - var val2: Int = 10 +class C + var val1: Int + var val2: Int = 10 end -fun foo do 2.output -fun bar(i: Int) do i.output -fun baz: Int do return 4 +fun foo do 2.output +fun bar(i: Int) do i.output +fun baz: Int do return 4 -1.output -foo -bar(3) -baz.output +1.output +foo +bar(3) +baz.output -var a = new A -a.run +var a = new A +a.run -var b = new B(8) -b.run +var b = new B(8) +b.run -var c = new C(9) -c.val1.output -c.val2.output +var c = new C(9) +c.val1.output +c.val2.output \ No newline at end of file diff --git a/tests/sav/test_highlight_args1.res b/tests/sav/test_highlight_args1.res index 2fa91ac..c9cc4e2 100644 --- a/tests/sav/test_highlight_args1.res +++ b/tests/sav/test_highlight_args1.res @@ -44,54 +44,54 @@

base_simple3$Int$output

	fun output is intern

base_simple3$A$Object::init

-
	init do 5.output
+
	init do 5.output

base_simple3$A$run

-
	fun run do 6.output
+
	fun run do 6.output

base_simple3$B$_val

-
	var val: Int
+
	var val: Int

base_simple3$B$val

-
	var val: Int
+
	var val: Int

base_simple3$B$val=

-
	var val: Int
+
	var val: Int

base_simple3$B$init

-
	init(v: Int)
+
	init(v: Int)
 	do
-		7.output
-		self.val = v
+		7.output
+		self.val = v
 	end

base_simple3$B$run

	fun run do val.output

base_simple3$C$_val1

-
	var val1: Int
+
	var val1: Int

base_simple3$C$val1

-
	var val1: Int
+
	var val1: Int

base_simple3$C$val1=

-
	var val1: Int
+
	var val1: Int

base_simple3$C$_val2

-
	var val2: Int = 10
+
	var val2: Int = 10

base_simple3$C$val2

-
	var val2: Int = 10
+
	var val2: Int = 10

base_simple3$C$val2=

-
	var val2: Int = 10
+
	var val2: Int = 10

base_simple3$Sys$foo

-
fun foo do 2.output
+
fun foo do 2.output

base_simple3$Sys$bar

-
fun bar(i: Int) do i.output
+
fun bar(i: Int) do i.output

base_simple3$Sys$baz

-
fun baz: Int do return 4
+
fun baz: Int do return 4

base_simple3$Sys$main

-
1.output
+
1.output
 foo
-bar(3)
+bar(3)
 baz.output
 
-var a = new A
+var a = new A
 a.run
 
-var b = new B(8)
+var b = new B(8)
 b.run
 
-var c = new C(9)
+var c = new C(9)
 c.val1.output
 c.val2.output

AST node: AModule at base_simple3.nit:17,1--66,13

@@ -108,41 +108,41 @@
end
class A - init do 5.output - fun run do 6.output + init do 5.output + fun run do 6.output end class B - var val: Int - init(v: Int) + var val: Int + init(v: Int) do - 7.output - self.val = v + 7.output + self.val = v end fun run do val.output end class C - var val1: Int - var val2: Int = 10 + var val1: Int + var val2: Int = 10 end -fun foo do 2.output -fun bar(i: Int) do i.output -fun baz: Int do return 4 +fun foo do 2.output +fun bar(i: Int) do i.output +fun baz: Int do return 4 -1.output +1.output foo -bar(3) +bar(3) baz.output -var a = new A +var a = new A a.run -var b = new B(8) +var b = new B(8) b.run -var c = new C(9) +var c = new C(9) c.val1.output c.val2.output

AST node: ANoImport at base_simple3.nit:17,1--10

@@ -184,11 +184,4 @@
 is

AST node: AAnnotation at base_simple3.nit:26,16--21

 intern
-

AST node: AIdAtid at base_simple3.nit:26,16--21

-
 intern
-

AST node: AConcreteClasskind at base_simple3.nit:29,1--5

-
class
-

AST node: TKwclass at base_simple3.nit:29,1--5

-
class
-

AST node: TKwinit at base_simple3.nit:30,2--5

-
	initAST node: AIdAtid at bas***TRUNCATED***