aboutsummaryrefslogtreecommitdiff
path: root/tests/library/corpora/postal.toml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/library/corpora/postal.toml')
-rw-r--r--tests/library/corpora/postal.toml35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/library/corpora/postal.toml b/tests/library/corpora/postal.toml
new file mode 100644
index 0000000..5bf05fd
--- /dev/null
+++ b/tests/library/corpora/postal.toml
@@ -0,0 +1,35 @@
+accepts = [
+ "90210",
+ "90210-1234",
+ "10115",
+ "75008",
+ "110001",
+ "1011 AB",
+ "NL-1011 AB",
+ "SW1A 1AA",
+ "EC1A 1BB",
+ "GIR 0AA",
+ "K1A 0B1",
+ "D02 AF30",
+ "100-0001",
+ "01310-100",
+ "2000",
+ "00184",
+ "28001",
+ "114 55",
+ "00-001",
+ "101000",
+]
+
+rejects = [
+ "",
+ " ",
+ "notazip",
+ "abcde",
+ "!!!!!",
+ "90210-12",
+ "90210-",
+ "ZZ99 9ZZ",
+ "123456789",
+ "----",
+]