Fix deprecated fields reader usage in generic_suite (#76)
This commit is contained in:
parent
f709bd9e16
commit
08055d72f3
|
@ -357,12 +357,12 @@ proc executeReaderWriterTests*(Format: type) =
|
|||
const bazFields = fieldReadersTable(Baz, ReaderType)
|
||||
check:
|
||||
len(bazFields) == 2
|
||||
findFieldReader(bazFields[], "f", pos) != nil
|
||||
findFieldReader(bazFields[], "i", pos) != nil
|
||||
findFieldReader(bazFields[], "i", pos) != nil
|
||||
findFieldReader(bazFields[], "f", pos) != nil
|
||||
findFieldReader(bazFields[], "f", pos) != nil
|
||||
findFieldReader(bazFields[], "ignored", pos) == nil
|
||||
findFieldReader(bazFields[], "some_other_name", pos) == nil
|
||||
findFieldReader(bazFields, "f", pos) != nil
|
||||
findFieldReader(bazFields, "i", pos) != nil
|
||||
findFieldReader(bazFields, "i", pos) != nil
|
||||
findFieldReader(bazFields, "f", pos) != nil
|
||||
findFieldReader(bazFields, "f", pos) != nil
|
||||
findFieldReader(bazFields, "ignored", pos) == nil
|
||||
findFieldReader(bazFields, "some_other_name", pos) == nil
|
||||
|
||||
executeRoundtripTests(Format)
|
||||
|
|
Loading…
Reference in New Issue