summaryrefslogtreecommitdiff
path: root/t/namespace.t
diff options
context:
space:
mode:
Diffstat (limited to 't/namespace.t')
-rw-r--r--t/namespace.t17
1 files changed, 17 insertions, 0 deletions
diff --git a/t/namespace.t b/t/namespace.t
new file mode 100644
index 0000000..e367720
--- /dev/null
+++ b/t/namespace.t
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+. t/testlib.sh
+
+namespace One; do
+ function test() { echo One/test; }
+
+ class Two; do
+ function test() { echo One/Two/test; }
+ done
+
+done
+
+is "$(One/test)" One/test 'function should be moved to namespace'
+is "$(One/Two/test)" One/Two/test 'class should be moved to namespace'
+
+done-testing