Does anyone know of something like a basic test su...
# present-company
j
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.
j
WikiFunctions! cc @Denny Vrandečić
g
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. http://www.reactive-streams.org/
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. https://github.com/reactive-streams/reactive-streams-jvm
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.
j
Thanks
j
not exactly what you’re looking for, but https://rosettacode.org/ seems useful.