You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Richard Eckart de Castilho (Jira)" <de...@uima.apache.org> on 2020/11/09 07:56:00 UTC
[jira] [Commented] (UIMA-6294) SelectFS.at(annotation) does not
return the correct result
[ https://issues.apache.org/jira/browse/UIMA-6294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17228390#comment-17228390 ]
Richard Eckart de Castilho commented on UIMA-6294:
--------------------------------------------------
Mind, there seems to be a bug in the provided test code:
{code}
assertEquals(2, selection2.size()); // Fails!
assertTrue(selection1.contains(fixture[0]));
assertTrue(selection1.contains(fixture[7]));
{code}
If I change this to {{assertTrue(selection2...}}, the tests run for me with the changes in PR-84.
> SelectFS.at(annotation) does not return the correct result
> ----------------------------------------------------------
>
> Key: UIMA-6294
> URL: https://issues.apache.org/jira/browse/UIMA-6294
> Project: UIMA
> Issue Type: Bug
> Components: uimaj
> Affects Versions: 3.1.1SDK
> Reporter: Mario Juric
> Assignee: Richard Eckart de Castilho
> Priority: Major
> Fix For: 3.2.0uimaFIT
>
> Attachments: SelectFSIssue.zip
>
>
> Please have a look at verify_selectAt in the SelectFSTest class. The call jCas.select(Annotation.class).at(subType) returns some annotation covered by subType, but not a single of those two that exactly have the same bounds as subType (fixture[0] and fixture[7])
> [^SelectFSIssue.zip]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)