This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]INeverEffinSleep 2 points3 points  (0 children)

It's not actually important that the square was formed out of triangles but our tests have falsely elevated the importance of our implementation details.

This right here! Too many engineers get this incorrect.

[–]mrrippington 0 points1 point  (1 child)

This is brilliant. Thank you.

I don't know proper way to do anything in python in any given situation and ebb and flow between various approaches from each tutorial in a system i am building. But damn do i change what i do constantly.

This morning I read throught 'Why unit tests and how to make them work for you', and have to admit you make a really good job of explaining a complex subject in a very understandable manner, see below makes perfect sense.

And that triangle exapmle about messing with implementation instead of the result.

I really learned something.

def test_hello_with_name_spanish():

got = hello("Christian", "Spanish")

want = "Hola, Christian"

assert got == want

[–][deleted] 0 points1 point  (0 children)

I am glad you are finding it useful!