Fix deprecated fields reader usage in generic_suite (#76)

This commit is contained in:
andri lim 2024-10-15 18:24:23 +07:00 committed by GitHub
parent f709bd9e16
commit 08055d72f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 7 deletions

View File

@ -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)