def test_can_parse_a_unary_array_from_single_step():
 steps = Step.many_from_lines(I_HAVE_TASTY_BEVERAGES.splitlines())
 assert_equals(len(steps), 1)
 assert isinstance(steps[0], Step)
 assert_equals(steps[0].sentence, string.split(I_HAVE_TASTY_BEVERAGES, '\n')[0])

def test_can_parse_a_unary_array_from_single_step ( ) : steps = Step . many_from_lines ( I_HAVE_TASTY_BEVERAGES . splitlines ( ) ) assert_equals ( len ( steps ) , 1 ) assert isinstance ( steps [ 0 ] , Step ) assert_equals ( steps [ 0 ] . sentence , string . split ( I_HAVE_TASTY_BEVERAGES , '\n' ) [ 0 ] )
it should extract a single ordinary step correctly into an array of steps .