19.01.2017, 18:49
Hey,
So, i have recently started creating a library that includes utility methods for working with dates and times.
I have had a couple of errors that i didn't notice because i didn't test the code properly (or i did it poorly), so i am now here to ask, do you test your code, if yes, how do you do it?
As for me, i now started to create my own assertion / test library containing some in my opinion useful macros and methods, if you want to, you can look at it here:
https://github.com/Bios-Marcel/Devel...r/DevTools.inc
Thias is how using it looks like:
https://github.com/Bios-Marcel/Date-.../unitTests.pwn
You can skip a whole test suite by using SKIP_TEST
Tell me what you think about it (it is about functionallity, not about performance!)
And no, i don't provide any guarantee that the code works perfect, if anyone intends to use it
greetings Marcel
So, i have recently started creating a library that includes utility methods for working with dates and times.
I have had a couple of errors that i didn't notice because i didn't test the code properly (or i did it poorly), so i am now here to ask, do you test your code, if yes, how do you do it?
As for me, i now started to create my own assertion / test library containing some in my opinion useful macros and methods, if you want to, you can look at it here:
https://github.com/Bios-Marcel/Devel...r/DevTools.inc
Thias is how using it looks like:
https://github.com/Bios-Marcel/Date-.../unitTests.pwn
You can skip a whole test suite by using SKIP_TEST
Tell me what you think about it (it is about functionallity, not about performance!)
And no, i don't provide any guarantee that the code works perfect, if anyone intends to use it
greetings Marcel