var rot13 = require('..');

exports['lower case'] = function (test) {
  var s = rot13();
  s.on('data', function(data) {
    test.equal(data.toString(), 'nopqrstuvwxyzabcdefghijklm');
    test.done();
  });
  s.write('abcdefghijklmnopqrstuvwxyz');
};

exports['upper case'] = function (test) {
  var s = rot13();
  s.on('data', function(data) {
    test.equal(data.toString(), 'NOPQRSTUVWXYZABCDEFGHIJKLM');
    test.done();
  });
  s.write('ABCDEFGHIJKLMNOPQRSTUVWXYZ');
};

exports['non alphabetical'] = function (test) {
  var s = rot13();
  var nonAlpha = '0123456789;:/!@#$%^&*()_+=-';
  s.on('data', function(data) {
    test.equal(data.toString(), nonAlpha);
    test.done();
  });
  s.write(nonAlpha);
};

@@ -461,32 +461,327 @@
 STUVWXYZ');%0A%7D;%0A%0A
+exports%5B'inverse'%5D = function (test) %7B%0A  var a = rot13();%0A  var b = rot13();%0A  var input = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';%0A  a.on('data', function(data) %7B%0A    b.write(data);%0A  %7D);%0A  b.on('data', function(data) %7B%0A    test.equal(data.toString(), input);%0A    test.done();%0A  %7D);%0A  a.write(input);%0A%7D;%0A%0A
 exports%5B'non alp

add inverse test