slagyr / speclj

pronounced "speckle": a TDD/BDD framework for Clojure.
MIT License
458 stars 58 forks source link

'Expected' vs 'got' #156

Closed becca-bailey closed 8 years ago

becca-bailey commented 8 years ago

It's always been my understanding that in the spec results, Expected: refers to the expected result of the test case, and got: refers to the actual return value when running the program. Whenever I run my tests, these values seem to be reversed. Is there a reason for this?

eyelidlessness commented 8 years ago

It appears to be based on the order specified: (should= :expected :actual). The docstring confirms this. I imagine it would be quite difficult to determine which value is the result of some program code.

becca-bailey commented 8 years ago

Oh, okay. I guess my arguments are just in the wrong order! Nevermind! 😑