]> gitweb.factorcode.org Git - factor.git/commitdiff
html: adding some tests
authorJohn Benediktsson <mrjbq7@gmail.com>
Mon, 14 Aug 2023 17:55:03 +0000 (10:55 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 14 Aug 2023 17:55:03 +0000 (10:55 -0700)
basis/html/html-tests.factor [new file with mode: 0644]

diff --git a/basis/html/html-tests.factor b/basis/html/html-tests.factor
new file mode 100644 (file)
index 0000000..023f623
--- /dev/null
@@ -0,0 +1,18 @@
+
+USING: html multiline tools.test xml.writer ;
+
+{
+    [=[ <a href="https://en.wikipedia.org/wiki/Minor_%28linear_algebra%29">minor on Wikipedia</a>]=]
+} [
+    "minor on Wikipedia"
+    "https://en.wikipedia.org/wiki/Minor_(linear_algebra)"
+    simple-link xml>string
+] unit-test
+
+{
+    [=[ <a href="https://en.wikipedia.org/wiki/Minor_%28linear_algebra%29">minor on Wikipedia</a>]=]
+} [
+    "minor on Wikipedia"
+    "https://en.wikipedia.org/wiki/Minor_%28linear_algebra%29"
+    simple-link xml>string
+] unit-test