package org.encog.parse;

import java.util.Collection;
import java.util.List;

import org.encog.parse.signal.Signal;



import junit.framework.TestCase;

public class TestParse extends TestCase {
	
	public void testString() throws Throwable
	{
		Parse parse = new Parse();
		parse.load();
		Signal signal = parse.parse("Hello world");
		Collection<Signal> list = signal.findByType("word");
		
		TestCase.assertEquals(2, list.size());
		int i=0;
		for(Signal s:list)
		{
			switch(i)
			{
				case 0:TestCase.assertEquals("Hello", s.toString());break;
				case 1:TestCase.assertEquals("world", s.toString());break;
			}
			i++;
		}
	}
}

@@ -237,16 +237,18 @@
 able%0A%09%7B%0A
+/*
 %09%09Parse 
@@ -626,13 +626,18 @@
 ++;%0A%09%09%7D%0A
+%09%09*/%0A
 %09%7D%0A%7D%0A

Remove parse unit test for now