summaryrefslogtreecommitdiff
path: root/tests/01_engine-idna.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/01_engine-idna.test')
-rwxr-xr-xtests/01_engine-idna.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/01_engine-idna.test b/tests/01_engine-idna.test
new file mode 100755
index 0000000..1c98e66
--- /dev/null
+++ b/tests/01_engine-idna.test
@@ -0,0 +1,10 @@
+#!/bin/bash
+#
+
+# IDNA routine
+test "$(httrack -O /dev/null -#4 "www.café.com")" == "www.xn--caf-dma.com" || exit 1
+test "$(httrack -O /dev/null -#4 "www.もののけ姫-the-movie.com")" == "www.xn---the-movie-g63irla2z8297c.com" || exit 1
+
+# reverse IDNA
+test "$(httrack -O /dev/null -#5 "www.xn--caf-dma.com")" == "www.café.com" || exit 1
+test "$(httrack -O /dev/null -#5 "www.xn---the-movie-g63irla2z8297c.com")" == "www.もののけ姫-the-movie.com" || exit 1