[template-glib] tests: show that scope is sort of special



commit fe1c2f05331cc69867fc68480741b19997e4145f
Author: Christian Hergert <chergert redhat com>
Date:   Fri May 6 10:17:41 2022 -0700

    tests: show that scope is sort of special

 tests/test1.script | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/tests/test1.script b/tests/test1.script
index 0d50adc..733b464 100644
--- a/tests/test1.script
+++ b/tests/test1.script
@@ -83,4 +83,10 @@ assert(typeof(action) != typeof(Gio.SimpleActionGroup))
 assert(typeof(action).is_a(typeof(Gio.Action)))
 assert(!typeof(action).is_a(typeof(Gio.ActionMap)))
 
+def count()
+  mycount+1
+end
+mycount = 2
+assert(count() == 3)
+
 1234;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]