Hacker News new | past | comments | ask | show | jobs | submit login

You could always define a macro like "expect_that", or something similar to ruby's expect(obj).to eq, etc.

I find assert_eq!() personally to not be confusing since I always follow the same order, even though I come from a Ruby background with rspec and/or cucumber.




The deadline for YC's W25 batch is 8pm PT tonight. Go for it!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: