jsonql icon indicating copy to clipboard operation
jsonql copied to clipboard

Externalize test

Open benzen opened this issue 8 years ago • 3 comments

Hi,

I m working on a templating system that aims to be language independant (https://github.com/caolan/magery). On piece that we are missing right know is an expression language.

I be looked at this project and it seems to fit our needs. Since we have implementation in multiple language we would need multiple implementation of jsonql.

Here is where I would need your help. Could you define a language independant test suite ? This would help us in the process of implementing jsonql in other languages.

Regards

benzen avatar Feb 08 '18 11:02 benzen

What did you mean by define a language independent test suite?

elgs avatar Feb 08 '18 16:02 elgs

A series of files that could be read and easly interpreted with any language.

For each test case:

  • a json file that contains the context on which we operate
  • a text file with the expression being evaluated
  • json/text file with the result of the evaluation

This way anybody would be able to build another implementation (in what ever language they please) of jsonql, and still deliver the same result.

This test suite would serve as a standard.

benzen avatar Feb 08 '18 16:02 benzen

Thanks. Now I understand what you meant. That's a good idea. But I don't have much incentive to do this at this moment of time because I'm overwhelmed by my other stuffs. Nevertheless, if you have any specific questions about the implementation of jsonql, or you'd like to make some pull requests about it, I will be glad to assist.

elgs avatar Feb 08 '18 17:02 elgs