diff options
author | Jon Bratseth <bratseth@vespa.ai> | 2023-11-09 15:21:32 +0100 |
---|---|---|
committer | Jon Bratseth <bratseth@vespa.ai> | 2023-11-09 15:21:32 +0100 |
commit | 022b624c2172461248842a453574cfbffa8a6e9b (patch) | |
tree | 577d646b5cdea3f054bec48a3fe2a24eb461b65b /indexinglanguage | |
parent | 6d433b7c567be0ffd4473a32884ec0fbe83a5df3 (diff) |
Test that casing is preserved
Diffstat (limited to 'indexinglanguage')
-rw-r--r-- | indexinglanguage/src/test/java/com/yahoo/vespa/indexinglanguage/linguistics/LinguisticsAnnotatorTestCase.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indexinglanguage/src/test/java/com/yahoo/vespa/indexinglanguage/linguistics/LinguisticsAnnotatorTestCase.java b/indexinglanguage/src/test/java/com/yahoo/vespa/indexinglanguage/linguistics/LinguisticsAnnotatorTestCase.java index 7f7e039cb9b..8baa4851f5d 100644 --- a/indexinglanguage/src/test/java/com/yahoo/vespa/indexinglanguage/linguistics/LinguisticsAnnotatorTestCase.java +++ b/indexinglanguage/src/test/java/com/yahoo/vespa/indexinglanguage/linguistics/LinguisticsAnnotatorTestCase.java @@ -82,15 +82,15 @@ public class LinguisticsAnnotatorTestCase { } @Test - public void requireThatTermAnnotationsAreLowerCased() { + public void requireThatTermAnnotationsPreserveCasing() { SpanTree expected = new SpanTree(SpanTrees.LINGUISTICS); - expected.spanList().span(0, 3).annotate(new Annotation(AnnotationTypes.TERM, new StringFieldValue("bar"))); + expected.spanList().span(0, 3).annotate(new Annotation(AnnotationTypes.TERM, new StringFieldValue("BaR"))); for (boolean specialToken : Arrays.asList(true, false)) { for (TokenType type : TokenType.values()) { if (!specialToken && !type.isIndexable()) { continue; } - assertAnnotations(expected, "foo", newToken("foo", "bar", type, specialToken)); + assertAnnotations(expected, "foo", newToken("foo", "BaR", type, specialToken)); } } } |