[SCM] Lisaac compiler branch, master, updated. lisaac-0.12-623-g7bd9c27
Mildred Ki'Lya
silkensedai at online.fr
Thu Apr 1 01:27:08 UTC 2010
The following commit has been merged in the master branch:
commit 7bd9c275ad531970b29133a2b7e1a2f963470895
Author: Mildred Ki'Lya <silkensedai at online.fr>
Date: Thu Apr 1 03:26:08 2010 +0200
Added test for dynamic inheritance bug
diff --git a/features/dynamic-inheritance.feature b/features/dynamic-inheritance.feature
new file mode 100644
index 0000000..d2d4ef3
--- /dev/null
+++ b/features/dynamic-inheritance.feature
@@ -0,0 +1,76 @@
+Feature: Dynamic Inheritance
+
+ Background:
+ Given lisaac/bin is in the PATH
+ And make.lip is installed
+
+ Scenario:
+ Given I am in an empty directory
+ And a file "hello.li":
+ """
+ Section Header
+
+ + name := HELLO;
+
+ Section Inherit
+
+ + parent_root :ROOT := ROOT;
+
+ Section Public
+
+ - main <-
+ (
+ hello;
+ parent_root := TOTO;
+ hello;
+ );
+ """
+ And a file "root.li":
+ """
+ Section Header
+
+ + name := ROOT;
+
+ Section Public
+
+ - hello <-
+ (
+ "Hello ROOT".println;
+ );
+ """
+ And a file "toto.li":
+ """
+ Section Header
+
+ + name := TOTO;
+
+ Section Inherit
+
+ + parent_root :Expanded ROOT;
+
+ Section Public
+
+ - toto <-
+ (
+ "Hello back from TOTO".println;
+ );
+
+ - hello <-
+ (
+ "Hello TOTO".println;
+ toto;
+ );
+ """
+
+ When I run lisaac hello
+ Then it should pass
+
+ When I run ./hello
+ Then it should pass with
+ """
+ Hello ROOT
+ Hello TOTO
+ Hello back from TOTO
+
+ """
+
--
Lisaac compiler
More information about the Lisaac-commits
mailing list