* follow #15357 and move decodeQuery * solve problem one * minor * deprecate decodeData * add changelog and since * add testcase for decodeQuery
This commit is contained in:
parent
2bdc479622
commit
689504081f
4 changed files with 67 additions and 34 deletions
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"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue