unitTest.cpp 265 B

123456
  1. Describe(negate_vector)
  2. {
  3. It(test1){Assert::That(negate({1,2,3,4}),Equals(std::vector<int>({-1,-2,-3,-4})));}
  4. It(test2){Assert::That(negate({-1,-2,-3,-4}),Equals(std::vector<int>({1,2,3,4})));}
  5. It(test3){Assert::That(negate({}),Equals(std::vector<int>({})));}
  6. };