unitTest.cpp 738 B

12345678
  1. Describe(remove_dups)
  2. {
  3. It(test1){Assert::That(removeDups({"John", "Taylor", "John"}), Equals(std::vector<std::string>({"John", "Taylor"})));}
  4. It(test2){Assert::That(removeDups({"John", "Taylor", "John", "john"}), Equals(std::vector<std::string>({"John", "Taylor", "john"})));}
  5. It(test3){Assert::That(removeDups({"javascript", "python", "python", "ruby", "javascript", "c", "ruby"}), Equals(std::vector<std::string>({"javascript", "python", "ruby", "c"})));}
  6. It(test4){Assert::That(removeDups({"#", "#", "%", "&", "#", "$", "&"}), Equals(std::vector<std::string>({"#", "%", "&", "$"})));}
  7. It(test5){Assert::That(removeDups({"3", "Apple", "3", "Orange", "Apple"}), Equals(std::vector<std::string>({"3", "Apple", "Orange"})));}
  8. };