#include "s0003_longest_substring_without_repeating_characters.hpp" #include TEST(Problem3, Case1) { std::string s{std::string("abcabcbb")}; S0003 solution; EXPECT_EQ(solution.lengthOfLongestSubstring(s), 3); } TEST(Problem3, Case2) { std::string s{std::string("bbbbb")}; S0003 solution; EXPECT_EQ(solution.lengthOfLongestSubstring(s), 1); } TEST(Problem3, Case3) { std::string s{std::string("pwwkew")}; S0003 solution; EXPECT_EQ(solution.lengthOfLongestSubstring(s), 3); }