aboutsummaryrefslogtreecommitdiffstats
path: root/indexinglanguage
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@vespa.ai>2023-11-09 15:21:32 +0100
committerJon Bratseth <bratseth@vespa.ai>2023-11-09 15:21:32 +0100
commit022b624c2172461248842a453574cfbffa8a6e9b (patch)
tree577d646b5cdea3f054bec48a3fe2a24eb461b65b /indexinglanguage
parent6d433b7c567be0ffd4473a32884ec0fbe83a5df3 (diff)
Test that casing is preserved
Diffstat (limited to 'indexinglanguage')
-rw-r--r--indexinglanguage/src/test/java/com/yahoo/vespa/indexinglanguage/linguistics/LinguisticsAnnotatorTestCase.java6
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));
}
}
}