Skip to content

Commit

Permalink
Switched to forward slash
Browse files Browse the repository at this point in the history
  • Loading branch information
criminosis committed Dec 1, 2023
1 parent 181bd4f commit ebcb506
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public void multipleStores() throws Exception {

private void storeTest(String... stores) throws Exception {

final Multimap<String, Object> doc1 = getDocument("Hello world janusgraph.org foo.\\bar", 1001, 5.2, Geoshape.point(48.0, 0.0), Geoshape.polygon(Arrays.asList(new double[][]{{-0.1, 47.9}, {0.1, 47.9}, {0.1, 48.1}, {-0.1, 48.1}, {-0.1, 47.9}})), Arrays.asList("1", "2", "3"), Sets.newHashSet("1", "2"), Instant.ofEpochSecond(1),
final Multimap<String, Object> doc1 = getDocument("Hello world janusgraph.org foo./bar", 1001, 5.2, Geoshape.point(48.0, 0.0), Geoshape.polygon(Arrays.asList(new double[][]{{-0.1, 47.9}, {0.1, 47.9}, {0.1, 48.1}, {-0.1, 48.1}, {-0.1, 47.9}})), Arrays.asList("1", "2", "3"), Sets.newHashSet("1", "2"), Instant.ofEpochSecond(1),
false);
final Multimap<String, Object> doc2 = getDocument("Tomorrow is the world", 1010, 8.5, Geoshape.point(49.0, 1.0), Geoshape.line(Arrays.asList(new double[][]{{0.9, 48.9}, {0.9, 49.1}, {1.1, 49.1}, {1.1, 48.9}})), Arrays.asList("4", "5", "6"), Sets.newHashSet("4", "5"), Instant.ofEpochSecond(2),
true);
Expand Down Expand Up @@ -348,7 +348,7 @@ private void storeTest(String... stores) throws Exception {
assertTrue(result.isEmpty());
result = tx.queryStream(new IndexQuery(store, PredicateCondition.of(TEXT, Text.CONTAINS_REGEX, "e[l]+(.*)"))).collect(Collectors.toList());
assertTrue(result.isEmpty());
result = tx.queryStream(new IndexQuery(store, PredicateCondition.of(TEXT, Text.CONTAINS_REGEX, ".*foo\\.\\\\bar"))).collect(Collectors.toList());
result = tx.queryStream(new IndexQuery(store, PredicateCondition.of(TEXT, Text.CONTAINS_REGEX, ".*foo\\./bar"))).collect(Collectors.toList());
assertEquals(ImmutableSet.of("doc1"), ImmutableSet.copyOf(result));
}
for (final JanusGraphPredicate tp : new Text[]{Text.PREFIX, Text.REGEX}) {
Expand Down

0 comments on commit ebcb506

Please sign in to comment.