mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
24 lines
642 B
YAML
24 lines
642 B
YAML
# Copyright (c) Microsoft Corporation.
|
|
# Licensed under the MIT License.
|
|
|
|
cases:
|
|
# Two single char symbols in a row must be parsed correctly.
|
|
- note: single-char-two-in-a-row
|
|
rego: |
|
|
++--**//&&||{{}}(())[[]];;,,..::<<>>
|
|
tokens: [
|
|
"+", "+", "-", "-", "*", "*", "/", "/", "&", "&",
|
|
"|", "|", "{", "{", "}", "}", "(", "(", ")", ")",
|
|
"[", "[", "]", "]", ";", ";", ",", ",", ".", ".",
|
|
":", ":", "<", "<", ">", ">",
|
|
""]
|
|
|
|
# Multi char operators must be correctly parsed.
|
|
- note: multi-char-in-a-row
|
|
rego: ">====<== ==="
|
|
tokens: [
|
|
">=", "==", "=", "<=", "=", "==", "=",
|
|
""]
|
|
|
|
|