public void WordBreakTest_3() { var solution = new _0139_WordBreak(); var result = solution.WordBreak("catsandog", new string[] { "cats", "dog", "sand", "and", "cat" }); Assert.IsFalse(result); }
public void WordBreakTest_1() { var solution = new _0139_WordBreak(); var result = solution.WordBreak("leetcode", new string[] { "leet", "code" }); Assert.IsTrue(result); }
public void WordBreakTest_2() { var solution = new _0139_WordBreak(); var result = solution.WordBreak("applepenapple", new string[] { "apple", "pen" }); Assert.IsTrue(result); }