Branch: Tag:

2009-08-15

2009-08-15 07:21:46 by Martin Nilsson <mani@lysator.liu.se>

Fixed backtrace when calling get_query_variables() on URI without query variables

Rev: lib/modules/Standards.pmod/URI.pike:1.31
Rev: lib/modules/Standards.pmod/testsuite.in:1.18

1:   START_MARKER - test_true([["$Id: testsuite.in,v 1.17 2007/08/05 12:15:37 marcus Exp $"]]); + test_true([["$Id: testsuite.in,v 1.18 2009/08/15 07:21:46 nilsson Exp $"]]);      // - Standards.ISO639_2   test_equal(Standards.ISO639_2.get_language("swe"),"Swedish")
60:   test_equal((string)Standards.URI("g#s/./x", "http://a/b/c/d;p?q"), "http://a/b/c/g#s/./x")   test_equal((string)Standards.URI("g#s/../x", "http://a/b/c/d;p?q"), "http://a/b/c/g#s/../x")   test_equal((string)Standards.URI("http:g", "http://a/b/c/d;p?q"), "http:g") + test_equal(Standards.URI("http://www.com/")->get_query_variables(),([])) + test_equal(Standards.URI("http://www.com/?a=b")->get_query_variables(),(["a":"b"]))         // - Standards.IDNA