MARMOTTA-628: added another test
Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/0b07a02b Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/0b07a02b Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/0b07a02b Branch: refs/heads/develop Commit: 0b07a02b04ea5a84a73e834f8aa671bf3fbf9e1f Parents: 2a6f700 Author: Sergio Fernández <[email protected]> Authored: Fri Feb 12 13:23:57 2016 +0100 Committer: Sergio Fernández <[email protected]> Committed: Fri Feb 12 13:23:57 2016 +0100 ---------------------------------------------------------------------- .../marmotta/kiwi/sparql/test/KiWiSparqlTest.java | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/marmotta/blob/0b07a02b/libraries/kiwi/kiwi-sparql/src/test/java/org/apache/marmotta/kiwi/sparql/test/KiWiSparqlTest.java ---------------------------------------------------------------------- diff --git a/libraries/kiwi/kiwi-sparql/src/test/java/org/apache/marmotta/kiwi/sparql/test/KiWiSparqlTest.java b/libraries/kiwi/kiwi-sparql/src/test/java/org/apache/marmotta/kiwi/sparql/test/KiWiSparqlTest.java index 67be368..bb61a5a 100644 --- a/libraries/kiwi/kiwi-sparql/src/test/java/org/apache/marmotta/kiwi/sparql/test/KiWiSparqlTest.java +++ b/libraries/kiwi/kiwi-sparql/src/test/java/org/apache/marmotta/kiwi/sparql/test/KiWiSparqlTest.java @@ -296,32 +296,34 @@ public class KiWiSparqlTest { } } - @Test - public void testMarmotta627_1() throws Exception { + public void testMarmotta628_1() throws Exception { testMarmotta627("SELECT ( (4.5-4.4)*0.1 as ?c ) WHERE {}", 0.01); } - @Test - public void testMarmotta627_2() throws Exception { + public void testMarmotta628_2() throws Exception { + testMarmotta627("SELECT ( (4.5*4.4)*0.1 as ?c ) WHERE {}", 1.98); + } + + @Test + public void testMarmotta627_1() throws Exception { testMarmotta627("SELECT ( 0.1*0.1 as ?c ) WHERE {}", 0.01); } @Test - public void testMarmotta627_3() throws Exception { + public void testMarmotta627_2() throws Exception { testMarmotta627("SELECT ( 0.10*0.01 as ?c ) WHERE {}", 0.001); } @Test - public void testMarmotta627_4() throws Exception { + public void testMarmotta627_3() throws Exception { testMarmotta627("SELECT ( 1.00*3.10 as ?c ) WHERE {}", 3.10); } @Test - public void testMarmotta627_5() throws Exception { + public void testMarmotta627_4() throws Exception { testMarmotta627("SELECT ( 2.00*4.00 as ?c ) WHERE {}", 8.00); } - }
