Welcome to the Linux Foundation Forum!

Chapter 16: Typo in explanation?

Options

In the first 'slide' of 'Writing Unit Tests' there are the lines:

"If the value passed to assert is truthy then it will not throw. This is the key behavior of any assertion, if the condition is met the assertion will throw an error."

Shouldn't this be "if the condition is met the assertion will NOT throw an error."? Or am I missing how assertions function or something?

Best Answer

Categories

Upcoming Training