Skip to content

Commit

Permalink
make specs in test more strict (more than they need to be)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoontz committed Jul 30, 2024
1 parent 0cc4acd commit c12d3bd
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test/menard/test/translate/en_es.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,17 @@
first)))))

(def have-fun-spec {:comp {:agr {:gender :fem, :number :plur, :person :3rd}}
:sem {:tense :present, :aspect :simple}
:head {:canonical "divertirse"}
:sem {:tense :present, :aspect :simple, :pred :have-fun}
:subcat []})

(def sentence-specs
[{:rule "s" :head {:rule "vp"
:head {:phrasal? false :canonical "divertirse"}
:comp {:phrasal? false
:sem {:pred :top}}}}

{:rule "s" :head {:phrasal? false :canonical "divertirse"}}])

(deftest reflexive-roundtrip
(let [input-sem (u/get-in have-fun-spec [:sem])]
(->> (-> have-fun-spec es/generate
Expand Down

0 comments on commit c12d3bd

Please sign in to comment.