BUG-2022: String Type pattern parsing and resolving fix.
[yangtools.git] / yang / yang-parser-impl / src / test / resources / model / bar.yang
index 56de7b6f29c45c19fa06630c9a06297669a7558d..3501ff45a9e9e2bd7c15e08df2d87f4c9ac0bfbc 100644 (file)
@@ -50,6 +50,19 @@ module bar {
         }
     }
 
+    typedef invalid-string-pattern {
+        type string {
+            pattern "[[A-1*-%22!^^}";
+        }
+    }
+
+    typedef multiple-pattern-string {
+        type string {
+            pattern "[[A-1*-%22!^^}";
+            pattern "[e-z]*";
+        }
+    }
+
     typedef my-decimal-type {
         type decimal64 {
             fraction-digits 6;