summaryrefslogtreecommitdiff
path: root/t/namespace.t
blob: e367720613ac4d1eb9c7b5866aae2972b47e53e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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