Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import static com.here.naksha.lib.core.models.payload.events.QueryDelimiter.COMMA;
import static com.here.naksha.lib.core.models.payload.events.QueryDelimiter.END;
import static com.here.naksha.lib.core.models.payload.events.QueryDelimiter.PLUS;
import static naksha.model.TagNormalizer.normalizeTag;

import com.here.naksha.lib.core.models.payload.events.QueryDelimiter;
import com.here.naksha.lib.core.models.payload.events.QueryParameter;
Expand Down Expand Up @@ -159,6 +158,6 @@ private static ITagQuery processAndSubQuery(
}

private static TagExists tagExists(String tag) {
return new TagExists(normalizeTag(tag));
return new TagExists(tag);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,23 @@ void assertionFailWhenTryingToBuildOperationWithSurroundingDelimiters() {
private static Stream<Arguments> simpleTagsSample() {
return Stream.of(
tagQuerySpec("tags=x", tq -> assertTagExistsWithName(tq, "x"), "only 'x'"),
tagQuerySpec("tags=One", tq -> assertTagExistsWithName(tq, "One"), "preserve capitalized tag"),
tagQuerySpec(
"tags=One+Two",
tq -> {
TagAnd tagAnd = assertTagAnd(tq);
assertTagExistsWithName(tagAnd.get(0), "One");
assertTagExistsWithName(tagAnd.get(1), "Two");
},
"preserve capitalized tags in AND search"),
tagQuerySpec(
"tags=One,Two",
tq -> {
TagOr tagOr = assertTagOr(tq);
assertTagExistsWithName(tagOr.get(0), "One");
assertTagExistsWithName(tagOr.get(1), "Two");
},
"preserve capitalized tags in OR search"),
tagQuerySpec(
"tags=this,that",
tq -> {
Expand Down
Loading