Move History

Fork Selected
  • Description

    If it does not work, just say :).

    Code
    template<typename T>
    T add(T a, T b){
    	return a-(-b);
    }
    Test Cases
    // TODO: Replace examples and use TDD development by writing your own tests
    
    Describe(somathing)
    {
        It(basic)
        {
            Assert::That(add(1024, 1024), Equals(2048));
            Assert::That(add(add(1.0, 1.5), add(32.0, 64.5)), Equals(99));
        }
        It(negativ_plus_positiv){
          Assert::That(add(1024, -1024), Equals(0));
          Assert::That(add(-512, 256));
        }
    };