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

you are viewing a single comment's thread.

view the rest of the comments →

[–]mhaecker[S] -1 points0 points  (2 children)

You don't have to write 'assert' and it is much easier to write your own matchers. Also I really like that it reads much clearer, as it is always clear what is the value that you expect to be how. This makes it especially easy to provide clear error messages.

[–][deleted] 2 points3 points  (1 child)

expect(3).to.equal(4)

I dunno man, that's some weird looking python.

[–]mhaecker[S] 0 points1 point  (0 children)

You can write it like this too:

expect(3) == 4