mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 18:02:05 +00:00
* follow #15357 and move decodeQuery * solve problem one * minor * deprecate decodeData * add changelog and since * add testcase for decodeQuery
8 lines
184 B
Nim
8 lines
184 B
Nim
import std/[uri, sequtils]
|
|
|
|
|
|
block:
|
|
doAssert toSeq(decodeQuery("a=1&b=0")) == @[("a", "1"), ("b", "0")]
|
|
doAssertRaises(UriParseError):
|
|
discard toSeq(decodeQuery("a=1&b=2c=6"))
|