toml-lang / toml-test

A language agnostic test suite for TOML parsers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Export Test.cmpTOML

moorereason opened this issue · comments

I'd like to request that Test.cmpTOML be exported. I'm wanting to compare the output of two different TOML implementations, and this one method is the only one I'm lacking access to.

I'm happy to submit a PR if you're okay with the idea.

Sure; I exported it as CompareTOML().

Thanks, @arp242. That's all I needed to make a simple proof-of-concept for fuzzing decoder implementations. It's pretty basic, but it works.

BTW, the only two up-to-date decoder implementations I'm aware of are BurntSushi and go-toml/v2.

Coolio, I was planning to look at fuzzing. I looked at it a few months ago for the TOML library and it seems nice. I'll probably wait until the 1.18 release though; I just can't be bothered to deal with multiple Go versions on my system out of laziness 😅

Aside:

A special thanks goes out to Martin Tournoij for creating the toml-test framework, which made this proof-of-concept a simple endeavor.

It was BurntSushi who created it; I did quite a bit of work on the UX and some other things in the last few months, but almost all of the concepts and quite a bit of the remaining code are by BurntSushi, not me. And of course there have been a number of other contributors as well.