aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {