1. Iulian Stana
  2. c-hglib
  3. Issues
Issue #8 new

write tests first? it's a trick to sketch out ASAP

Giovanni Gherdovich
created an issue

With the goal of foresee problems as soon as possible and to publish a skeleton of API as soon as possible, we sould think of write a tests suite (along with header files that declare the API functions) before implementing the API in its full glory.

This would allow as to better clarify input and output. In the signature

int baloo(char* foo);

it isn't specified that, for instance, the return value is actually a bit pattern and what is its semantics. This can be clearly stated (and checked) in a test case, for instance.

Comments (0)

  1. Log in to comment