/**
 * @author Gilles Coomans <gilles.coomans@gmail.com>
 *
 */
if (typeof require !== 'undefined')
	var chai = require("chai"),
		routedsl = require("../index"),
		v = routedsl.v;
else
	var v = routedsl.v;

var expect = chai.expect;

describe("...", function() {

	/*
		it("should", function() {
			expect(res).to.deep.equals({
				"filters": [{
					method: "hello"
				}, {
					method: "world"
				}],
				decorated: true
			});
		});
	*/
});

@@ -242,11 +242,13 @@
 be(%22
-...
+local
 %22, f
@@ -263,42 +263,270 @@
 ) %7B%0A
-%0A%09/*%0A%09%09it(%22should%22, function() %7B%0A%09
+%09var url = '/bloupi/lollipop/foo/bar';%0A%0A%09var route = new routedsl('/s:bloupi/s:lollipop');%0A%09var route2 = new routedsl('./s:foo/s:bar');%0A%0A%09var desc = route.match(url);%0A%09var desc2 = route2.match(desc);%0A%0A%09it(%22should%22, function() %7B%0A%09%09expect(desc.index).to.equals(2)%0A
 %09%09ex
@@ -534,11 +534,19 @@
 ect(
-r
+d
 es
+c.output
 ).to
@@ -567,116 +567,167 @@
 %0A%09%09%09
-%09%22filters%22: %5B%7B%0A%09%09%09%09%09method: %22hello%22%0A%09%09%09%09%7D, %7B%0A%09%09%09%09%09method: %22world%22%0A%09%09%09%09%7D%5D,%0A%09%09%09%09decorated: true%0A%09%09%09%7D);
+bloupi: 'bloupi',%0A%09%09%09lollipop: 'lollipop'%0A%09%09%7D);%0A%09%09expect(desc2.index).to.equals(4)%0A%09%09expect(desc2.output).to.deep.equals(%7B%0A%09%09%09foo: 'foo',%0A%09%09%09bar: 'bar'
 %0A%09%09%7D);%0A%09
 */%0A%7D
@@ -722,15 +722,16 @@
 %0A%09%09%7D);%0A%09
-*/
+%7D);
 %0A%7D);%0A

add first test