Follow

@s8n @fugger @mikuphile -Wmisleading-indentation

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

· · Web · 1 · 0 · 0
@applejack @s8n @mikuphile yeah unit tests sound good need to try implementing them if I ever write a big enough program to justify them
@applejack @mikuphile @s8n haven't had a big project yet don't know what to do maybe write a OS since I am more comfortable with memory management now
@applejack @mikuphile @s8n biggest project I've done was a Fediverse client I ended up abandoning when I realized how shit the Pleroma API is it's hell to work with

@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

@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)
...

Sign in to participate in the conversation
Game Liberty Mastodon

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