def test_stop(): speeds = resolve(0, 0) expect(DirectionResolver().resolve(speeds)).to(equal('S'))
def test_right(): speeds = resolve(50, -50) expect(DirectionResolver().resolve(speeds)).to(equal('R'))
def test_left(): speeds = resolve(-50, 50) expect(DirectionResolver().resolve(speeds)).to(equal('L'))
def test_reverse_right_with_zero(): speeds = resolve(-70, 0) expect(DirectionResolver().resolve(speeds)).to(equal('RvR'))
def test_reverse_left_with_zero(): speeds = resolve(0, -70) expect(DirectionResolver().resolve(speeds)).to(equal('RvL'))
def test_reverse(): speeds = resolve(-50, -50) expect(DirectionResolver().resolve(speeds)).to(equal('Rv'))
def test_forward_left_with_zero(): speeds = resolve(0, 50) expect(DirectionResolver().resolve(speeds)).to(equal('FL'))
def test_forward_left(): speeds = resolve(50, 70) expect(DirectionResolver().resolve(speeds)).to(equal('FL'))
def test_forward_right_with_zero(): speeds = resolve(70, 0) expect(DirectionResolver().resolve(speeds)).to(equal('FR'))
def test_forward(): speeds = resolve(50, 50) expect(DirectionResolver().resolve(speeds)).to(equal('F'))