mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 22:10:33 +00:00
* follow #15357 and move decodeQuery * solve problem one * minor * deprecate decodeData * add changelog and since * add testcase for decodeQuery
This commit is contained in:
7
tests/stdlib/tdecodequery.nim
Normal file
7
tests/stdlib/tdecodequery.nim
Normal file
@@ -0,0 +1,7 @@
|
||||
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"))
|
||||
Reference in New Issue
Block a user