[asterisk-scf-commits] asterisk-scf/release/slice-plugins.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Tue Apr 12 11:12:50 CDT 2011


branch "master" has been updated
       via  19de6a7af6358362a4a56d76a6d966048cf5bd88 (commit)
      from  7d5aafa84a46257cd2358d84d17df52de2c0a51f (commit)

Summary of changes:
 test/visitor-test.ice |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)
 create mode 100644 test/visitor-test.ice


- Log -----------------------------------------------------------------
commit 19de6a7af6358362a4a56d76a6d966048cf5bd88
Author: Kevin P. Fleming <kpfleming at digium.com>
Date:   Tue Apr 12 11:11:52 2011 -0500

    Add a simple Slice file that can be used to test the SliceVisitorPattern
    plugin to ensure it is operating properly. Maybe someday there will be a unit
    test that actually automates this... but for now at least having the Slice
    file available is a good start.

diff --git a/test/visitor-test.ice b/test/visitor-test.ice
new file mode 100644
index 0000000..adad11a
--- /dev/null
+++ b/test/visitor-test.ice
@@ -0,0 +1,25 @@
+module test {
+    ["visitor"] local class VisitorA {
+    };
+
+    ["visitor:VisitorA"] class ItemABase {
+    };
+
+    class ItemA1 extends ItemABase {
+    };
+
+    class ItemA2 extends ItemABase {
+    };
+
+    local class VisitorB extends VisitorA {
+    };
+
+    ["visitor:VisitorB"] class ItemBBase extends ItemABase {
+    };
+
+    class ItemB1 extends ItemBBase {
+    };
+
+    class ItemB2 extends ItemBBase {
+    };
+};

-----------------------------------------------------------------------


-- 
asterisk-scf/release/slice-plugins.git



More information about the asterisk-scf-commits mailing list