aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2019-01-09 22:46:37 -0800
committerChristine Dodrill <me@christine.website>2019-01-09 22:46:37 -0800
commit7128a197e33d99024f0609a2bafa12fc5f3f53de (patch)
tree7cfd9d620daf4c0191b30d352b3b2ca74d6e2c51
parentab3fc4f8a33f3f036ce856b8fa67a2e295bf81d4 (diff)
downloadx-7128a197e33d99024f0609a2bafa12fc5f3f53de.tar.xz
x-7128a197e33d99024f0609a2bafa12fc5f3f53de.zip
test multiple verbs
-rw-r--r--la-baujmi/fact_test.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/la-baujmi/fact_test.go b/la-baujmi/fact_test.go
index 0f38634..955c800 100644
--- a/la-baujmi/fact_test.go
+++ b/la-baujmi/fact_test.go
@@ -78,6 +78,21 @@ func TestSentenceToSelbris(t *testing.T) {
},
wantFacts: []string{"ala(tenpo_ni, A)."},
},
+ {
+ name: "multiple_verbs",
+ json: []byte(`[{"part":"subject","tokens":["ona"]},{"part":"verbMarker","sep":"li","tokens":["sona"]},{"part":"verbMarker","sep":"li","tokens":["pona"]},{"part":"objectMarker","sep":"e","tokens":["mute"]},{"part":"punctuation","tokens":["period"]}]`),
+ want: []Selbri{
+ {
+ Predicate: "sona",
+ Arguments: []string{"ona", "mute"},
+ },
+ {
+ Predicate: "pona",
+ Arguments: []string{"ona", "mute"},
+ },
+ },
+ wantFacts: []string{"sona(ona, mute).", "pona(ona, mute)."},
+ },
}
for _, cs := range cases {