123456789 |
- Describe(find_unique_number)
- {
- It(test1){Assert::That(unique({3, 3, 3, 7, 3, 3}), Equals(7));}
- It(test2){Assert::That(unique({0, 0, 0.77, 0, 0}), Equals(0.77));}
- It(test3){Assert::That(unique({0, 1, 1, 1, 1, 1, 1, 1}), Equals(0));}
- It(test4){Assert::That(unique({-4, -4, -4, 4}), Equals(4));}
- It(test5){Assert::That(unique({8, 8, 8, 8, 8, 8, 8, 0.5}), Equals(0.5));}
- It(test6){Assert::That(unique({2, 1, 2, 2, 2, 2, 2, 2}), Equals(1));}
- };
|