Skip to content

Commit 39b667c

Browse files
-Add namespaces unit test. WIP.
1 parent 8b97106 commit 39b667c

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

unit-test/namespaces_test.cpp

+17-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
namespace Universe
2+
{
13
namespace World
24
{
35
struct Shape
@@ -6,6 +8,17 @@ struct Shape
68
int length;
79
};
810
} // namespace World
11+
} // namespace Universe
12+
13+
namespace Universe
14+
{
15+
16+
struct Shape2
17+
{
18+
int width;
19+
int length;
20+
};
21+
} // namespace Universe
922

1023
class WorldClass
1124
{
@@ -17,5 +30,7 @@ class WorldClass
1730
};
1831
}; // namespace World
1932

20-
World::Shape myShape{};
21-
WorldClass::Shape classyShape{};
33+
Universe::World::Shape myShape{};
34+
35+
Universe::Shape2 myShape2{};
36+
WorldClass::Shape classyShape{};

0 commit comments

Comments
 (0)