var compute = require('./hamming').compute;

describe('Hamming', function () {

  it('no difference between identical strands', function () {
    expect(compute('A', 'A')).toEqual(0);
  });

  xit('complete hamming distance for single nucleotide strand', function () {
    expect(compute('A','G')).toEqual(1);
  });

  xit('complete hamming distance for small strand', function () {
    expect(compute('AG','CT')).toEqual(2);
  });

  xit('small hamming distance', function () {
    expect(compute('AT','CT')).toEqual(1);
  });

  xit('small hamming distance in longer strand', function () {
    expect(compute('GGACG', 'GGTCG')).toEqual(1);
  });

  xit('ignores extra length on first strand when longer', function () {
    expect(compute('AAAG', 'AAA')).toEqual(0);
  });

  xit('ignores extra length on other strand when longer', function () {
    expect(compute('AAA', 'AAAG')).toEqual(0);
  });

  xit('large hamming distance', function () {
    expect(compute('GATACA', 'GCATAA')).toEqual(4);
  });

  xit('hamming distance in very long strand', function () {
    expect(compute('GGACGGATTCTG', 'AGGACGGATTCT')).toEqual(9);
  });

});


@@ -653,56 +653,66 @@
 it('
-ignores extra length on first strand when longer
+no defined hamming distance for unequal string (first way)
 ', f
@@ -757,31 +757,36 @@
 , 'AAA')).to
-Equal(0
+BeUndefined(
 );%0A  %7D);%0A%0A  
@@ -794,56 +794,67 @@
 it('
-ignores extra length on other strand when longer
+no defined hamming distance for unequal string (second way)
 ', f
@@ -899,31 +899,36 @@
  'AAAG')).to
-Equal(0
+BeUndefined(
 );%0A  %7D);%0A%0A  

Fix tests with different length strings to look for undefined result, rather than zero.