# present-company

Justin Blank

03/22/2023, 10:37 PM
Does anyone know of something like a basic test suite for developing a language? My idea is that in addition to building up test cases that implement specific functionality, what if I had a corpus of programs and a source to source compiler I could retarget to my new language? I can think of a lot of things that would make this hard—mutability vs immutability, semantics of basic data types, etc.

Jack Rusher

03/23/2023, 11:40 AM
WikiFunctions! cc @Denny Vrandečić


03/23/2023, 11:57 AM
I think i have something that you could look at. I was tangentially involved with an implementation of the reactive-streams spec that was incorporated into java 1.9.
look at the section “A Note for Implementors”
Its a very simple collection of 3 interfaces that you have to implement but they have complex runtime behavior.
you look at the 250 closed giihub issues to get a sense of the amount of work went into trying to make the rules concise, accurate and complete.
for the testing part of your question they then developed a test suite call TCK that is a requirement to get this spec incorporated into java.

Justin Blank

03/23/2023, 12:32 PM

Joshua Horowitz

03/23/2023, 6:57 PM
not exactly what you’re looking for, but seems useful.