# HG changeset patch # User sugi # Date 1366092587 -32400 # Node ID 02783f3699b162c3d99926060f2060f5f1ec4e70 # Parent d9c9076d6b47b2554c50ecd5c2ec2cac85b3b1c7 add word count diff -r d9c9076d6b47 -r 02783f3699b1 .settings/org.eclipse.core.resources.prefs --- a/.settings/org.eclipse.core.resources.prefs Tue Apr 09 11:26:17 2013 +0900 +++ b/.settings/org.eclipse.core.resources.prefs Tue Apr 16 15:09:47 2013 +0900 @@ -1,3 +1,4 @@ -#Wed Mar 27 14:38:59 JST 2013 eclipse.preferences.version=1 encoding//src/alice/test/codesegment/local/bitonicsort/SortTest.java=UTF-8 +encoding//src/alice/test/codesegment/local/wordcount/SetTask.java=UTF-8 +encoding//src/alice/test/codesegment/local/wordcount/WordCount.java=UTF-8 diff -r d9c9076d6b47 -r 02783f3699b1 README --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README Tue Apr 16 15:09:47 2013 +0900 @@ -0,0 +1,3 @@ +HOW TO USE TEST PROGRAM + +"-level info" is for log off \ No newline at end of file diff -r d9c9076d6b47 -r 02783f3699b1 src/alice/datasegment/Receiver.java --- a/src/alice/datasegment/Receiver.java Tue Apr 09 11:26:17 2013 +0900 +++ b/src/alice/datasegment/Receiver.java Tue Apr 16 15:09:47 2013 +0900 @@ -65,7 +65,6 @@ public void setData(ReceiverData r) { data = r; - } public int asInteger() { diff -r d9c9076d6b47 -r 02783f3699b1 src/alice/test/codesegment/local/wordcount/CorrectResult.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/alice/test/codesegment/local/wordcount/CorrectResult.java Tue Apr 16 15:09:47 2013 +0900 @@ -0,0 +1,34 @@ +package alice.test.codesegment.local.wordcount; + +import alice.codesegment.CodeSegment; +import alice.datasegment.CommandType; +import alice.datasegment.Receiver; + +public class CorrectResult extends CodeSegment{ + + private Receiver[] array; + + public CorrectResult(int size) { + array = new Receiver[size]; + for (int i=0;i