Imported Upstream version 0.14.01
[liburi-template-perl.git] / t / data / opensearch.json
diff --git a/t/data/opensearch.json b/t/data/opensearch.json
new file mode 100644 (file)
index 0000000..7ea9ca3
--- /dev/null
@@ -0,0 +1,23 @@
+{
+  "variables": {
+    "bar"    : "a",
+    "x:bar"  : "b"
+  },
+
+  "tests": [
+    {
+      "template": "http://example.org/?q={bar?}",
+      "expected": "http://example.org/?q=a"
+    },
+
+    {
+      "template": "/{dne?}",
+      "expected": "/"
+    },
+
+    {
+      "template": "http://example.org/?q={bar}&r={x:bar}",
+      "expected": "http://example.org/?q=a&r=b"
+    }
+  ]
+}