From b24f61a465d21af404ed647a977160042017e601 Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Sat, 5 Nov 2022 14:21:13 +0900 Subject: Remove alias system Remove unimportant features to tidy up the specification. --- grammar/grammar_test.go | 74 ------------------------------------------------- 1 file changed, 74 deletions(-) (limited to 'grammar/grammar_test.go') diff --git a/grammar/grammar_test.go b/grammar/grammar_test.go index 5d18029..80613aa 100644 --- a/grammar/grammar_test.go +++ b/grammar/grammar_test.go @@ -2962,79 +2962,6 @@ fragment f }, } - aliasDirTests := []*specErrTest{ - { - caption: "the `#alias` directive needs a string parameter", - specSrc: ` -#name test; - -s - : foo - ; - -foo #alias - : 'foo'; -`, - errs: []*SemanticError{semErrDirInvalidParam}, - }, - { - caption: "the `#alias` directive takes just one string parameter", - specSrc: ` -#name test; - -s - : foo - ; - -foo #alias 'Foo' 'FOO' - : 'foo'; -`, - errs: []*SemanticError{semErrDirInvalidParam}, - }, - { - caption: "the `#alias` directive cannot take an ID parameter", - specSrc: ` -#name test; - -s - : foo - ; - -foo #alias bar - : 'foo'; -`, - errs: []*SemanticError{semErrDirInvalidParam}, - }, - { - caption: "the `#alias` directive cannot take a pattern parameter", - specSrc: ` -#name test; - -s - : foo - ; - -foo #alias "Foo" - : 'foo'; -`, - errs: []*SemanticError{semErrDirInvalidParam}, - }, - { - caption: "the `#alias` directive cannot take a directive group parameter", - specSrc: ` -#name test; - -s - : foo - ; - -foo #alias () - : 'foo'; -`, - errs: []*SemanticError{semErrDirInvalidParam}, - }, - } - modeDirTests := []*specErrTest{ { caption: "the `#mode` directive needs an ID parameter", @@ -3438,7 +3365,6 @@ bar tests = append(tests, altPrecDirTests...) tests = append(tests, recoverDirTests...) tests = append(tests, fragmentTests...) - tests = append(tests, aliasDirTests...) tests = append(tests, modeDirTests...) tests = append(tests, pushDirTests...) tests = append(tests, popDirTests...) -- cgit v1.2.3