From 709cf92de411b7a57c7298f8d970901930c4ce0f Mon Sep 17 00:00:00 2001 From: dakkar Date: Sat, 22 Jul 2023 14:07:56 +0100 Subject: fix block&namespace nesting --- t/namespace.t | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 t/namespace.t (limited to 't') 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 -- cgit v1.2.3