summaryrefslogtreecommitdiffstats
path: root/vendor/pest_derive/tests/grammar.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/pest_derive/tests/grammar.rs')
-rw-r--r--vendor/pest_derive/tests/grammar.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/vendor/pest_derive/tests/grammar.rs b/vendor/pest_derive/tests/grammar.rs
index cf5a4a60c..30ef99d63 100644
--- a/vendor/pest_derive/tests/grammar.rs
+++ b/vendor/pest_derive/tests/grammar.rs
@@ -263,6 +263,20 @@ fn choice_prefix() {
}
#[test]
+fn node_tag() {
+ parses_to! {
+ parser: GrammarParser,
+ input: "abc",
+ rule: Rule::node_tag,
+ tokens: [
+ node_tag(0, 3, [
+ string(0, 3)
+ ])
+ ]
+ };
+}
+
+#[test]
fn optional_string() {
parses_to! {
parser: GrammarParser,