enable style:usages for stdlib tests [backport: 1.6] (#19715)
* enable style:usages for stdlib tests * freeAddrInfo * more tests * importc * bufSize * fix more * => parseSql and renderSql
This commit is contained in:
parent
26bcf18f91
commit
98cebad7de
42 changed files with 149 additions and 146 deletions
|
|
@ -259,7 +259,7 @@ proc testJson() =
|
|||
colors: array[2, BirdColor]
|
||||
|
||||
var red = BirdColor(name: "red", rgb: [1.0, 0.0, 0.0])
|
||||
var blue = Birdcolor(name: "blue", rgb: [0.0, 0.0, 1.0])
|
||||
var blue = BirdColor(name: "blue", rgb: [0.0, 0.0, 1.0])
|
||||
var b = Bird(age: 3, height: 1.734, name: "bardo", colors: [red, blue])
|
||||
let jnode = %b
|
||||
let data = jnode.to(Bird)
|
||||
|
|
@ -497,7 +497,7 @@ proc testJson() =
|
|||
doAssert array[3, float](t.arr) == [1.0,2.0,7.0]
|
||||
|
||||
doAssert MyRef(t.person).name == "boney"
|
||||
doAssert MyObj(t.distFruit).color == 11
|
||||
doAssert MyObj(t.distfruit).color == 11
|
||||
doAssert t.dog.name == "honey"
|
||||
doAssert t.fruit.color == 10
|
||||
doAssert seq[string](t.emails) == @["abc", "123"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue