var main = require('./square.js');


exports.testSquare = function(test){
    test.expect(1);
    var expected = 25;
    var result; 
    main.square(5,function(res){
      result = res;
    });
    test.equal(expected,result);
    test.done();
};

exports.testSubtract = function(test){
  test.expect(1);

  var expected = 2;
  var result;
  main.subtract(4,2,function(res){
    result = res;
  });
  test.equal(expected,result);
  test.done();
}

exports.testAdd = function(test){
  test.expect(1);

  var expected = 6;
  var result;
  main.addition(4,2,function(res){
    result = res;
  });
  test.equal(expected,result);
  test.done();
}
var main = require('./square.js');


exports.testSquare = function(test){
    test.expect(1);
    var expected = 20;
    var result; 
    main.square(5,function(res){
      result = res;
    });
    test.equal(expected,result);
    test.done();
};

exports.testSubtract = function(test){
  test.expect(1);

  var expected = 2;
  var result;
  main.subtract(4,2,function(res){
    result = res;
  });
  test.equal(expected,result);
  test.done();
}

exports.testAdd = function(test){
  test.expect(1);

  var expected = 6;
  var result;
  main.addition(4,2,function(res){
    result = res;
  });
  test.equal(expected,result);
  test.done();
}
Test should fail