dafky2000 / simplectemplate

Simple C Template library to expand placeholders in a template string, simple alternative to mustache.github.io that doesn't require JSON as data input.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement unit testing

dafky2000 opened this issue · comments

Select framework and implement a suitable unit test framework.

I've used google-test in the past and I don't mind the unit tests in C++
https://github.com/bast/gtest-demo

Some time ago I wrote a neat little unit testing framework in C for C. It would be a pleasure to help you by integrating it into your project.

https://github.com/compiler-dept/speck

Simple and straight forward, I like it! Would love your help integrating speck into this project. I prefer it to be setup as as a git submodule.

Please base off of and create your pull request on the develop branch :)

Thank you, I will do it tonight.

Done, please have a look at PR #32.

Great! Now I can start adding some basic tests. :) Thanks again @apfohl!

I added a first test for you.

Got all the basic unit tests added, speck is very easy to use :)