From 87dfa67b5ac95e1f41cb2be3507cc47da26caef0 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Mon, 13 Apr 2015 01:30:57 +0200 Subject: Adapt isNamespacededIdentifier to most recent identifier format --- test/core/parser/stack/StackTest.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'test/core/parser/stack/StackTest.cpp') diff --git a/test/core/parser/stack/StackTest.cpp b/test/core/parser/stack/StackTest.cpp index ff13713..194746e 100644 --- a/test/core/parser/stack/StackTest.cpp +++ b/test/core/parser/stack/StackTest.cpp @@ -408,13 +408,13 @@ TEST(Stack, invalidCommandName) s.fieldEnd(); tracker.expect(1, 0, 1, 1, 0); // scc, ec, fsc, fec, dc, sac, stc, etc - s.commandStart("a_", {}); + s.commandStart("b", {}); tracker.expect(2, 1, 1, 1, 0); // scc, ec, fsc, fec, dc, sac, stc, etc s.fieldStart(true); s.fieldEnd(); tracker.expect(2, 1, 2, 2, 0); // scc, ec, fsc, fec, dc, sac, stc, etc - s.commandStart("a_:b", {}); + s.commandStart("a:b", {}); tracker.expect(3, 2, 2, 2, 0); // scc, ec, fsc, fec, dc, sac, stc, etc s.fieldStart(true); s.fieldEnd(); @@ -423,6 +423,12 @@ TEST(Stack, invalidCommandName) ASSERT_THROW(s.commandStart("_a", {}), LoggableException); tracker.expect(3, 3, 3, 3, 0); // scc, ec, fsc, fec, dc, sac, stc, etc + ASSERT_THROW(s.commandStart("a_", {}), LoggableException); + tracker.expect(3, 3, 3, 3, 0); // scc, ec, fsc, fec, dc, sac, stc, etc + + ASSERT_THROW(s.commandStart("a_:b", {}), LoggableException); + tracker.expect(3, 3, 3, 3, 0); // scc, ec, fsc, fec, dc, sac, stc, etc + ASSERT_THROW(s.commandStart("a:", {}), LoggableException); tracker.expect(3, 3, 3, 3, 0); // scc, ec, fsc, fec, dc, sac, stc, etc -- cgit v1.2.3