From c4b2781aa8ebfa79a706dec53d1bc459978f51b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edvard=20Th=C3=B6rnros?= Date: Mon, 22 Feb 2021 19:30:58 +0100 Subject: WIP: Fix some bugs... --- progs/tests/simple.sy | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'progs/tests/simple.sy') diff --git a/progs/tests/simple.sy b/progs/tests/simple.sy index 12a43c0..42b9ac2 100644 --- a/progs/tests/simple.sy +++ b/progs/tests/simple.sy @@ -1,2 +1,7 @@ -print extern_test(3.0) -print extern_test(3.0, 4.0, 5.0) +a :: 1 +a <=> 1 +b := 2 +{ + a <=> 1 + b <=> 2 +} -- cgit v1.2.1 From 8e001b54fb2f74e4e68ea2c75ab0be8db5ea9de5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edvard=20Th=C3=B6rnros?= Date: Mon, 22 Feb 2021 21:19:29 +0100 Subject: fix all the tests that had unused variables --- progs/tests/simple.sy | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'progs/tests/simple.sy') diff --git a/progs/tests/simple.sy b/progs/tests/simple.sy index 42b9ac2..0f69ae2 100644 --- a/progs/tests/simple.sy +++ b/progs/tests/simple.sy @@ -1,7 +1,11 @@ -a :: 1 -a <=> 1 -b := 2 +a := 0 { - a <=> 1 - b <=> 2 + b := 99999 + { + a := 99999 + a + } + b + a -= 1 } +a <=> -1 -- cgit v1.2.1 From 0a37bd9ba38d1fefe077f72640926e3fac034992 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edvard=20Th=C3=B6rnros?= Date: Tue, 23 Feb 2021 19:04:11 +0100 Subject: break up sections --- progs/tests/simple.sy | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'progs/tests/simple.sy') diff --git a/progs/tests/simple.sy b/progs/tests/simple.sy index 12a43c0..84bc86d 100644 --- a/progs/tests/simple.sy +++ b/progs/tests/simple.sy @@ -1,2 +1,23 @@ -print extern_test(3.0) -print extern_test(3.0, 4.0, 5.0) +// +// import A + +// +f :: fn { + g! + print q +} + +// +q :: 1 + +// +a := 1 + +qq :: fn { + g! + print q +} + + +// Steg 1: Hitta sektioner +// Dela sektioner, compilera felera sektioner efter varandra -- cgit v1.2.1 From 2570830850c6dadadc2c86bf9d6f3203c9aba488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Fri, 5 Mar 2021 19:07:13 +0100 Subject: convert tests to files --- progs/tests/simple.sy | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 progs/tests/simple.sy (limited to 'progs/tests/simple.sy') diff --git a/progs/tests/simple.sy b/progs/tests/simple.sy deleted file mode 100644 index 84bc86d..0000000 --- a/progs/tests/simple.sy +++ /dev/null @@ -1,23 +0,0 @@ -// -// import A - -// -f :: fn { - g! - print q -} - -// -q :: 1 - -// -a := 1 - -qq :: fn { - g! - print q -} - - -// Steg 1: Hitta sektioner -// Dela sektioner, compilera felera sektioner efter varandra -- cgit v1.2.1