public void DP_TestMethod8() { IV.Set32_WordBreakProblem wbp = new IV.Set32_WordBreakProblem(); string s = "aaaaaaa"; HashSet <string> wordDict = new HashSet <string>(); wordDict.Add("aaaa"); wordDict.Add("aa"); var x = wbp.WordBreak_DP_Dict(s, wordDict); Assert.AreEqual(false, x); }
public void DP_TestMethod9() { IV.Set32_WordBreakProblem wbp = new IV.Set32_WordBreakProblem(); string s = "leetcode"; HashSet <string> wordDict = new HashSet <string>(); wordDict.Add("leet"); wordDict.Add("code"); var x = wbp.WordBreak_DP_Dict(s, wordDict); Assert.AreEqual(true, x); }