Skip to content

Commit

Permalink
Writing some natural language tests.
Browse files Browse the repository at this point in the history
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
Show file tree
Hide file tree
Showing 7 changed files with 184 additions and 0 deletions.
19 changes: 19 additions & 0 deletions common/src/test/resources/dataset/simple/chars
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/
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.
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.
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.
18 changes: 18 additions & 0 deletions common/src/test/resources/dataset/simple/items
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
11 changes: 11 additions & 0 deletions common/src/test/resources/dataset/simple/specs
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
23 changes: 23 additions & 0 deletions common/src/test/resources/dataset/simple/tonat
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

0 comments on commit 37d267d

Please sign in to comment.