#if TEST
	// mcs -debug -out:testtrie.exe -define:TEST Trie.cs Logger.cs
	public class Tester
	{
		public static void Main (string [] args)
		{
			string src = "abc cde decklund abcde abcdefg abcdecklund decklundecklund";
			Logger.Log ("Searching in '{0}':", src);

			TrieTree trie = new TrieTree (false);
			trie.AddKeyword ("abc", "abc");
			Logger.Log ("Added keyword '{0}':", "abc");
			trie.AddKeyword ("cde", "cde");
			Logger.Log ("Added keyword '{0}':", "cde");
			trie.AddKeyword ("cdefg", "cdefg");
			Logger.Log ("Added keyword '{0}':", "cdefg");
			trie.AddKeyword ("decklund", "decklund");
			Logger.Log ("Added keyword '{0}':", "decklund");

			Logger.Log ("Starting search...");
			foreach (TrieHit hit in trie.FindMatches (src)) {
				Logger.Log ("*** Match: '{0}' at {1}-{2}",
						   hit.Key,
						   hit.Start,
						   hit.End);
			}
			Logger.Log ("Search finished!");
		}
	}
#endif
