samisagit / natskell

A NATS client library written in Haskell
MIT License
7 stars 0 forks source link

Investigate external test fixture file #63

Closed samisagit closed 2 years ago

samisagit commented 2 years ago

If we had a generator that would write all our test cases to a file in the form of

input|||expectation

e.g.

"SUB 123\r\n"|||Sub { id 123 :: int } 
...
...

in order for the tests to just take cases and make assertions (meaning both specific parsers and generic parsers could use the same fixtures)

samisagit commented 2 years ago

linked to #34

samisagit commented 2 years ago

Generated tests cases already exceed 5 million so a file will not be possible for performance reasons