-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Writing some natural language tests.
git-svn-id: https://open-delta.googlecode.com/svn/trunk@428 dd429c29-c832-59a0-e864-46e68368aa0b
- Loading branch information
chris.godwin.ala@gmail.com
committed
Apr 6, 2011
1 parent
60dadc0
commit 37d267d
Showing
7 changed files
with
184 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
*SHOW ~ open-delta simple test data set. | ||
|
||
*CHARACTER LIST | ||
#1. text character<with comment 1>/ | ||
|
||
#2. integer numeric character<comment 2>/ | ||
whole units/ | ||
|
||
#3. real numeric <comment 3>character/ | ||
real units/ | ||
|
||
#4. unordered multistate character<comment 4>/ | ||
1. state 1/ | ||
2. state 2/ | ||
|
||
#5. ordered multistate character/ | ||
1. state 3/ | ||
2. state 4/ | ||
3. state 5/ |
38 changes: 38 additions & 0 deletions
38
common/src/test/resources/dataset/simple/expected_results/default.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
|
||
Test Data Set | ||
|
||
|
||
|
||
|
||
item 1 <comment 1> | ||
|
||
(1) Text character attribute 1,1. (2) Integer numeric character 1-3 | ||
whole units. (3) Real numeric character 2.5 real units. (4) Unordered | ||
multistate character state 1, or state 2. (5) Ordered multistate character | ||
state 3 to state 5. | ||
|
||
|
||
item 2 <comment 2> | ||
|
||
(1) Text character attribute 2,1. (2) Integer numeric character 1 whole | ||
units. (4) Unordered multistate character state 1. (5) Ordered multistate | ||
character state 5. | ||
|
||
|
||
(Variant) item 3 | ||
|
||
(1) Text character attribute 3,1. (5) Ordered multistate character state | ||
5. | ||
|
||
|
||
item 4 | ||
|
||
(1) Text character attribute 4,1. | ||
|
||
|
||
item 5 | ||
|
||
(1) Text character attribute 5,1. (2) Integer numeric character 4 whole | ||
units. (3) Real numeric character 1.01 real units. (4) Unordered multistate | ||
character state 2. (5) Ordered multistate character state 3 to state 4. |
38 changes: 38 additions & 0 deletions
38
...on/src/test/resources/dataset/simple/expected_results/redundant_variant_attr_included.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
|
||
Test Data Set | ||
|
||
|
||
|
||
|
||
item 1 <comment 1> | ||
|
||
(1) Text character attribute 1,1. (2) Integer numeric character 1-3 | ||
whole units. (3) Real numeric character 2.5 real units. (4) Unordered | ||
multistate character state 1, or state 2. (5) Ordered multistate character | ||
state 3 to state 5. | ||
|
||
|
||
item 2 <comment 2> | ||
|
||
(1) Text character attribute 2,1. (2) Integer numeric character 1 whole | ||
units. (4) Unordered multistate character state 1. (5) Ordered multistate | ||
character state 5. | ||
|
||
|
||
(Variant) item 3 | ||
|
||
(1) Text character attribute 3,1. (2) Integer numeric character 1 whole | ||
units. (5) Ordered multistate character state 5. | ||
|
||
|
||
item 4 | ||
|
||
(1) Text character attribute 4,1. | ||
|
||
|
||
item 5 | ||
|
||
(1) Text character attribute 5,1. (2) Integer numeric character 4 whole | ||
units. (3) Real numeric character 1.01 real units. (4) Unordered multistate | ||
character state 2. (5) Ordered multistate character state 3 to state 4. |
37 changes: 37 additions & 0 deletions
37
common/src/test/resources/dataset/simple/expected_results/redundant_variant_attr_omitted.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
|
||
Test Data Set | ||
|
||
|
||
|
||
|
||
item 1 <comment 1> | ||
|
||
(1) Text character attribute 1,1. (2) Integer numeric character 1-3 | ||
whole units. (3) Real numeric character 2.5 real units. (4) Unordered | ||
multistate character state 1, or state 2. (5) Ordered multistate character | ||
state 3 to state 5. | ||
|
||
|
||
item 2 <comment 2> | ||
|
||
(1) Text character attribute 2,1. (2) Integer numeric character 1 whole | ||
units. (4) Unordered multistate character state 1. (5) Ordered multistate | ||
character state 5. | ||
|
||
|
||
(Variant) item 3 | ||
|
||
(1) Text character attribute 3,1. | ||
|
||
|
||
item 4 | ||
|
||
(1) Text character attribute 4,1. | ||
|
||
|
||
item 5 | ||
|
||
(1) Text character attribute 5,1. (2) Integer numeric character 4 whole | ||
units. (3) Real numeric character 1.01 real units. (4) Unordered multistate | ||
character state 2. (5) Ordered multistate character state 3 to state 4. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
*SHOW ~ simple test data set - item descriptions. | ||
|
||
*ITEM DESCRIPTIONS | ||
|
||
# item 1<comment 1>/ | ||
1<attribute 1,1> 2,1-3 3,2.5 4,1/2 5,1-3 | ||
|
||
# item 2<comment 2>/ | ||
1<attribute 2,1> 2,1 4,1 5,3 | ||
|
||
#+ item 3/ | ||
1<attribute 3,1> 4 | ||
|
||
# item 4/ | ||
1<attribute 4,1> | ||
|
||
# item 5/ | ||
1<attribute 5,1> 2,4 3,1.01 4,2 5,1-2&3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
*SHOW ~ Grass Genera - specifications. | ||
|
||
*NUMBER OF CHARACTERS 5 | ||
|
||
*MAXIMUM NUMBER OF STATES 3 | ||
|
||
*MAXIMUM NUMBER OF ITEMS 5 | ||
|
||
*CHARACTER TYPES 1,TE 2,IN 3,RN 4,UM 5,OM | ||
|
||
*NUMBERS OF STATES 4,2 5,3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
*SHOW Translate into natural language - plain text. | ||
|
||
*HEADING Grass Genera #TIME #DATE | ||
|
||
*LISTING FILE tonat.lst | ||
|
||
*PRINT FILE tonat.prt | ||
|
||
*INPUT FILE specs | ||
|
||
*TRANSLATE INTO NATURAL LANGUAGE | ||
|
||
*OMIT TYPESETTING MARKS | ||
|
||
*PRINT WIDTH 78 | ||
|
||
*INPUT FILE layout | ||
|
||
*INPUT FILE chars | ||
|
||
*PRINT HEADING | ||
|
||
*INPUT FILE items |