test: Add unit test for generic classname and namespace

This commit is contained in:
Sidharth Vinod
2023-12-04 11:21:27 +05:30
parent 8de1bde8f4
commit 93a920cdfe
2 changed files with 20 additions and 6 deletions

View File

@@ -1043,6 +1043,19 @@ foo()
`;
parser.parse(str);
});
it('should handle namespace with nested types', () => {
parser.parse(`classDiagram
namespace space {
class Square~Shape~{
int id
List~int~ position
setPoints(List~int~ points)
getPoints() List~int~
}
}`);
});
});
});