extern crate hamming as dna;

#[test]
fn test_no_difference_between_empty_strands() {
    assert_eq!(dna::hamming_distance("", "").unwrap(), 0);
}

#[test]
#[ignore]
fn test_no_difference_between_identical_strands() {
    assert_eq!(dna::hamming_distance("GGACTGA", "GGACTGA").unwrap(), 0);
}

#[test]
#[ignore]
fn test_complete_hamming_distance_in_small_strand() {
    assert_eq!(dna::hamming_distance("ACT", "GGA").unwrap(), 3);
}

#[test]
#[ignore]
fn test_small_hamming_distance_in_the_middle_somewhere() {
    assert_eq!(dna::hamming_distance("GGACG", "GGTCG").unwrap(), 1);
}

#[test]
#[ignore]
fn test_larger_distance() {
    assert_eq!(dna::hamming_distance("ACCAGGG", "ACTATGG").unwrap(), 2);
}

#[test]
#[ignore]
fn test_first_string_is_longer() {
    assert_eq!(dna::hamming_distance("AAA", "AA"), Result::Err("inputs of different length"));
}

#[test]
#[ignore]
fn test_second_string_is_longer() {
    assert_eq!(dna::hamming_distance("A", "AA"), Result::Err("inputs of different length"));
}

extern crate hamming as dna;

#[test]
fn test_no_difference_between_empty_strands() {
    assert_eq!(dna::hamming_distance("", "").unwrap(), 0);
}

#[test]
#[ignore]
fn test_no_difference_between_identical_strands() {
    assert_eq!(dna::hamming_distance("GGACTGA", "GGACTGA").unwrap(), 0);
}

#[test]
#[ignore]
fn test_complete_hamming_distance_in_small_strand() {
    assert_eq!(dna::hamming_distance("ACT", "GGA").unwrap(), 3);
}

#[test]
#[ignore]
fn test_small_hamming_distance_in_the_middle_somewhere() {
    assert_eq!(dna::hamming_distance("GGACG", "GGTCG").unwrap(), 1);
}

#[test]
#[ignore]
fn test_larger_distance() {
    assert_eq!(dna::hamming_distance("ACCAGGG", "ACTATGG").unwrap(), 2);
}

#[test]
#[ignore]
fn test_first_string_is_longer() {
    assert!(dna::hamming_distance("AAA", "AA").is_err());
}

#[test]
#[ignore]
fn test_second_string_is_longer() {
    assert!(dna::hamming_distance("A", "AA").is_err());
}

Make error checking identical to other tests
Make error checking identical to other tests
