summaryrefslogtreecommitdiff
path: root/tests/files/unicode
diff options
context:
space:
mode:
authorJohan Fleury <jfleury@arcaik.net>2018-10-08 12:58:12 -0400
committerJohan Fleury <jfleury@arcaik.net>2018-10-08 12:58:12 -0400
commit735c78d3ecb695dd16cb37879880f522c4b29c72 (patch)
tree8bfb2ecbd0f03730efa1540cc65d8490b67e8ddd /tests/files/unicode
Import upstream version 1.7.0
Diffstat (limited to 'tests/files/unicode')
-rw-r--r--tests/files/unicode/1f.yaml13
-rw-r--r--tests/files/unicode/1s.yaml10
-rw-r--r--tests/files/unicode/3f.yaml10
-rw-r--r--tests/files/unicode/3s.yaml7
4 files changed, 40 insertions, 0 deletions
diff --git a/tests/files/unicode/1f.yaml b/tests/files/unicode/1f.yaml
new file mode 100644
index 0000000..97d51f5
--- /dev/null
+++ b/tests/files/unicode/1f.yaml
@@ -0,0 +1,13 @@
+schema:
+ type: map
+ mapping:
+ msg:
+ type: int
+ Alô:
+ type: int
+data:
+ msg: "Alô do Brasil!!"
+ Alô: "Brasil!!"
+errors:
+ - "Value 'Alô do Brasil!!' is not of type 'int'. Path: '/msg'"
+ - "Value 'Brasil!!' is not of type 'int'. Path: '/Alô'"
diff --git a/tests/files/unicode/1s.yaml b/tests/files/unicode/1s.yaml
new file mode 100644
index 0000000..ab9fff9
--- /dev/null
+++ b/tests/files/unicode/1s.yaml
@@ -0,0 +1,10 @@
+schema:
+ type: map
+ mapping:
+ msg:
+ type: str
+ Alô:
+ type: str
+data:
+ msg: "Alô do Brasil!!"
+ Alô: "Brasil!!"
diff --git a/tests/files/unicode/3f.yaml b/tests/files/unicode/3f.yaml
new file mode 100644
index 0000000..a963f1b
--- /dev/null
+++ b/tests/files/unicode/3f.yaml
@@ -0,0 +1,10 @@
+schema:
+ type: seq
+ sequence:
+ - type: int
+data:
+ - foobar
+ - åäö
+errors:
+ - "Value 'foobar' is not of type 'int'. Path: '/0'"
+ - "Value 'åäö' is not of type 'int'. Path: '/1'"
diff --git a/tests/files/unicode/3s.yaml b/tests/files/unicode/3s.yaml
new file mode 100644
index 0000000..3ab54de
--- /dev/null
+++ b/tests/files/unicode/3s.yaml
@@ -0,0 +1,7 @@
+schema:
+ type: seq
+ sequence:
+ - type: str
+data:
+ - foobar
+ - åäö