X-Git-Url: http://erislabs.net/gitweb/?p=liburi-template-perl.git;a=blobdiff_plain;f=t%2Fdata%2Fspec.json;fp=t%2Fdata%2Fspec.json;h=0000000000000000000000000000000000000000;hp=92979bdc94b87656c116ef02d9b7ec4f7b724a9e;hb=81c7f1b85cb98976fe96ad4f8a11037b2cb3de35;hpb=1b350f7b046bbc833e37a9fba91fc808c0fed41a diff --git a/t/data/spec.json b/t/data/spec.json deleted file mode 100644 index 92979bd..0000000 --- a/t/data/spec.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "variables": { - "foo" : "\u03d3", - "bar" : "fred", - "baz" : "10,20,30", - "qux" : ["10","20","30"], - "corge" : [], - "grault" : "", - "garply" : "a/b/c", - "waldo" : "ben & jerrys", - "fred" : ["fred", "", "wilma"], - "plugh" : ["\u017F\u0307", "\u0073\u0307"], - "1-a_b.c": 200 - }, - - "tests": [ - { - "template": "http://example.org/?q={bar}", - "expected": "http://example.org/?q=fred" - }, - - { - "template": "/{xyzzy}", - "expected": "/" - }, - - { - "template": "http://example.org/?{-join|&|foo,bar,xyzzy,baz}", - "expected": "http://example.org/?foo=%CE%8E&bar=fred&baz=10%2C20%2C30" - }, - - { - "template": "http://example.org/?d={-list|,|qux}", - "expected": "http://example.org/?d=10,20,30" - }, - - { - "template": "http://example.org/?d={-list|&d=|qux}", - "expected": "http://example.org/?d=10&d=20&d=30" - }, - - { - "template": "http://example.org/{bar}{bar}/{garply}", - "expected": "http://example.org/fredfred/a%2Fb%2Fc" - }, - - { - "template": "http://example.org/{bar}{-prefix|/|fred}", - "expected": "http://example.org/fred/fred//wilma" - }, - - { - "template": "{-neg|:|corge}{-suffix|:|plugh}", - "expected": ":%E1%B9%A1:%E1%B9%A1:" - }, - - { - "template": "../{waldo}/", - "expected": "../ben%20%26%20jerrys/" - }, - - { - "template": "telnet:192.0.2.16{-opt|:80|grault}", - "expected": "telnet:192.0.2.16:80" - }, - - { - "template": ":{1-a_b.c}:", - "expected": ":200:" - } - ] -}