Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #313 +/- ##
==========================================
- Coverage 70.83% 70.82% -0.01%
==========================================
Files 390 390
Lines 32729 32731 +2
Branches 4609 4610 +1
==========================================
+ Hits 23182 23183 +1
- Misses 8483 8484 +1
Partials 1064 1064 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ddaspit
left a comment
There was a problem hiding this comment.
It would be good if we had a unit test that covers this case.
Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @AndyBlack)
|
Yes, I agree it would be good to have a unit test for this. As I said above, though, I don't know how to create an Allomorph with an XAmple-like reduplication pattern. |
ddaspit
left a comment
There was a problem hiding this comment.
Oops, I missed that. I will see what I can do.
Reviewable status:
complete! all files reviewed, all discussions resolved (waiting on @AndyBlack)
ddaspit
left a comment
There was a problem hiding this comment.
Now that I understand the issue a bit better, I feel like it is more appropriate to fix this issue in FieldWorks. From HC's perspective, this is an invalid case and shouldn't be allowed. Since this is specific to the reduplication pattern in FieldWorks, it would make sense to fix it in the HCLoader class in FieldWorks. The LoadReduplicationOutputActions can be updated to ignore output actions that use a name that doesn't exist on the LHS. You can get a list of the valid names from the return value of LoadReduplicationPatterns. Each returned pattern object has a Name property.
Reviewable status:
complete! all files reviewed, all discussions resolved (waiting on @AndyBlack)
|
OK. Sounds good. I'll work on that in HCLoader.cs. |
When using an XAmple-style reduplication pattern, if there was an indexed natural class in the pattern that was not also in the environment, then Hermit Crab threw a key not found exception. This by-passes that.
Note: I wanted to create a unit test case for this but did not know how to create the reduplication information in an Allomorph. So there is no unit test case for this.
This change is