summaryrefslogtreecommitdiff
path: root/tests/files/success/test_pattern.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/files/success/test_pattern.yaml')
-rw-r--r--tests/files/success/test_pattern.yaml18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/files/success/test_pattern.yaml b/tests/files/success/test_pattern.yaml
new file mode 100644
index 0000000..41a751b
--- /dev/null
+++ b/tests/files/success/test_pattern.yaml
@@ -0,0 +1,18 @@
+---
+name: pattern1
+desc: Test simples pattern
+data: foo@gmail.com
+schema:
+ type: str
+ pattern: .+@.+
+---
+name: pattern2
+desc: Test simple pattern in list
+data:
+ - foo@mail.com
+ - bar@mail.net
+schema:
+ type: seq
+ sequence:
+ - type: str
+ pattern: .+@.+