We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent7efff5c commitb346892Copy full SHA for b346892
test/com/atomgraph/platform/query/QueryBuilder.spec.ts
@@ -30,6 +30,14 @@ describe('QueryBuilder', () => {
30
expect(actual).to.deep.equal(newParser().parse(expected));
31
});
32
33
+it('regexInsensitive()',()=>{
34
+letquery="SELECT ?s { ?s ?p ?o }";
35
+letexpected="SELECT ?s { ?s ?p ?o FILTER (regex(?s, \"test\", \"i\")) }";
36
+letactual=QueryBuilder.fromString(query).where(QueryBuilder.filter(QueryBuilder.regex("s","test",true))).build();
37
+
38
+expect(actual).to.deep.equal(newParser().parse(expected));
39
+});
40
41
it('operation()',()=>{
42
letquery="SELECT ?s { ?s ?p ?o }";
43
letexpected="SELECT ?s { ?s ?p ?o FILTER (?s IN (<http://a>, \"b\", \"c\")) }";