Bug1061-CannotMarkMembersAsProtectedInClassDiagram

Using # to indicate protected status of a member or method causing parser error when not used inside class declaration brackets {}.  Removed '#' from `LABEL` regex
This commit is contained in:
Justin Greywolf
2019-11-19 12:18:41 -08:00
committed by Justin Greywolf
parent 3469cfca2f
commit 68c2ea38c9
4 changed files with 22 additions and 4 deletions

View File

@@ -40,6 +40,21 @@ describe('class diagram, ', function() {
parser.parse(str);
});
it('should handle visibility for methods and members', function() {
const str =
'classDiagram\n' +
'class TestClass\n' +
'TestClass : -int privateMember\n' +
'TestClass : +int publicMember\n' +
'TestClass : #int protectedMember\n' +
'TestClass : -privateMethod()\n' +
'TestClass : +publicMethod()\n' +
'TestClass : #protectedMethod()\n' +
parser.parse(str);
});
it('should handle class definitions', function() {
const str =
'classDiagram\n' +