diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2022-11-05 14:21:13 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2022-11-05 14:21:13 +0900 |
commit | b24f61a465d21af404ed647a977160042017e601 (patch) | |
tree | 0b695a6775ed6a0a7bb41404b598055855417673 /grammar/grammar_test.go | |
parent | Update README (diff) | |
download | cotia-b24f61a465d21af404ed647a977160042017e601.tar.gz cotia-b24f61a465d21af404ed647a977160042017e601.tar.xz |
Remove alias system
Remove unimportant features to tidy up the specification.
Diffstat (limited to 'grammar/grammar_test.go')
-rw-r--r-- | grammar/grammar_test.go | 74 |
1 files changed, 0 insertions, 74 deletions
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...) |