4 ms·
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
by intertextuality 7y ago
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.