Change asserts to be the right way around.