ToSplittedStrings() 공개 메소드

Parse the root string and form the concatenation of prefix and the parsed parts of the root for inverted word index
public ToSplittedStrings ( ) : IEnumerable
리턴 IEnumerable
예제 #1
0
 public void ToSplittedStringsTwoRoots()
 {
     // More than one item
     IndexString test = new IndexString("good:", "bad?ok");
     Assert.AreEqual("bad good:bad ok good:ok", String.Join(" ", test.ToSplittedStrings()));
 }
예제 #2
0
 public void ToSplittedStringsNoPrefix()
 {
     // No prefix
     IndexString test = new IndexString(null, "good-ok");
     Assert.AreEqual("good-ok", String.Join(" ", test.ToSplittedStrings()));
 }
예제 #3
0
 public void ToSplittedStringsNoRoot()
 {
     // No root
     IndexString test = new IndexString("good", null);
     Assert.AreEqual("", String.Join(" ", test.ToSplittedStrings()));
 }
예제 #4
0
 public void ToSplittedStringsBasic()
 {
     // One item
     IndexString test = new IndexString("good:", "bad");
     Assert.AreEqual("bad good:bad", String.Join(" ", test.ToSplittedStrings()));
 }