}

#[test]
fn parse_loop() {
    assert_eq!(Program { instructions: vec![LoopEntry(1usize), LoopExit(0usize)] },
               parse("[]".to_string()));
}

#[test]
fn parse_program_with_all_instructions() {
    assert_eq!(Program {
                   instructions: vec![Input, // 0
                                      Inc(1u8), // 1
                                      MoveRight(1usize), // 2