assert_result_emitted "xs=[1,4,7];invert xs",[7,4,1]