From ba1b51b172b83990b15392244132748b16014ef2 Mon Sep 17 00:00:00 2001 From: Nick Molcanov <32801560+nck-mlcnv@users.noreply.github.com> Date: Fri, 11 Oct 2024 12:18:01 +0200 Subject: [PATCH] Add chained update request as test case for Update queries distinction --- .../java/org/aksw/iguana/cc/query/QueryDataTest.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/aksw/iguana/cc/query/QueryDataTest.java b/src/test/java/org/aksw/iguana/cc/query/QueryDataTest.java index 3db404fcf..63b56d249 100644 --- a/src/test/java/org/aksw/iguana/cc/query/QueryDataTest.java +++ b/src/test/java/org/aksw/iguana/cc/query/QueryDataTest.java @@ -38,6 +38,12 @@ public static void setup() throws IOException { SELECT ?s ?p ?o WHERE { ?s ?p ?o } + + INSERT DATA { + + }; INSERT DATA { + + } """); } @@ -55,11 +61,12 @@ void testGeneration() throws IOException { QueryData.generate(testStrings.stream().map(s -> (InputStream) new ByteArrayInputStream(s.getBytes())).toList()) ); for (List generation : generations) { - assertEquals(4, generation.size()); + assertEquals(5, generation.size()); assertFalse(generation.get(0).update()); assertTrue(generation.get(1).update()); assertTrue(generation.get(2).update()); assertFalse(generation.get(3).update()); + assertTrue(generation.get(4).update()); } } } \ No newline at end of file