[SCM] Lisaac compiler branch, master, updated. lisaac-0.12-606-g4554e79
Mildred Ki'Lya
silkensedai at online.fr
Mon Mar 1 01:30:55 UTC 2010
The following commit has been merged in the master branch:
commit c681bf3eb709a3caef84d8e60420c615f00529c0
Author: Mildred Ki'Lya <silkensedai at online.fr>
Date: Sun Sep 6 10:53:00 2009 +0200
add tests
diff --git a/tests/boolean_test2.li b/tests/boolean_test2.li
new file mode 100644
index 0000000..a6f32cb
--- /dev/null
+++ b/tests/boolean_test2.li
@@ -0,0 +1,27 @@
+Section Header
+
+ + name := BOOLEAN_TEST2;
+
+Section Inherit
+
+ + parent_object :Expanded OBJECT;
+
+Section Public
+
+ - main <-
+ ( + boolean_variable :BOOLEAN;
+ "FALSE expected: ".print;
+ boolean_variable.println;
+ boolean_variable := FALSE;
+ "FALSE expected: ".print;
+ boolean_variable.println;
+ boolean_variable := TRUE;
+ "TRUE expected: ".print;
+ boolean_variable.println;
+ "TRUE expected: ".print;
+ boolean_variable.if {
+ "TRUE".println;
+ } else {
+ "FALSE".println;
+ };
+ );
diff --git a/tests/boolean_test3.li b/tests/boolean_test3.li
new file mode 100644
index 0000000..36d6622
--- /dev/null
+++ b/tests/boolean_test3.li
@@ -0,0 +1,16 @@
+Section Header
+
+ + name := BOOLEAN_TEST3;
+
+Section Public
+
+ - main <-
+ ( + b :BOOLEAN;
+ (b == FALSE).if {
+ "FALSE".println;
+ } else {
+ "TRUE".println;
+ };
+ "If it compiles, it means that it works !!!".println;
+ );
+
diff --git a/tests/print_char_test.li b/tests/print_char_test.li
new file mode 100644
index 0000000..936a366
--- /dev/null
+++ b/tests/print_char_test.li
@@ -0,0 +1,10 @@
+Section Header
+
+ + name := PRINT_CHAR_TEST;
+
+Section Public
+
+ - main <-
+ ( + a:INTEGER;
+ a := 10;
+ );
--
Lisaac compiler
More information about the Lisaac-commits
mailing list