aboutsummaryrefslogtreecommitdiff
path: root/tests/library/corpora/hostname.toml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/library/corpora/hostname.toml')
-rw-r--r--tests/library/corpora/hostname.toml15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/library/corpora/hostname.toml b/tests/library/corpora/hostname.toml
new file mode 100644
index 0000000..23da560
--- /dev/null
+++ b/tests/library/corpora/hostname.toml
@@ -0,0 +1,15 @@
+accepts = [
+ "example.com",
+ "sub.example.co.uk",
+ "localhost",
+ "a.b.c",
+ "xn--d1acufc.example",
+]
+
+rejects = [
+ "",
+ "-bad.com",
+ ".com",
+ "a..b",
+ "exa mple.com",
+]