@s8n @fugger @mikuphile -Wmisleading-indentation

According to one article I read about they didn't unit-test

@applejack @s8n @mikuphile yeah unit tests sound good need to try implementing them if I ever write a big enough program to justify them

@fugger @mikuphile @s8n They're really really great if they're applicable. When you have clear and parsable input and output, like a simple library, they're great. Don't really work for a game or something

Also combine then with code coverage if applicable

Follow

@fugger @mikuphile @s8n In any library I make I have a test.c or test.lua that's just 500 asserts or functions that call asserts

assert(math("1+2") == 3)
assert(math("-(1)") == -1)
...

· · Web · 0 · 0 · 0
Sign in to participate in the conversation
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.