m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/pl/edu/mimuw/cloudatlas/model
diff options
context:
space:
mode:
authorMartin <marcin.j.chrzanowski@gmail.com>2019-12-30 13:18:04 +0100
committerGitHub <noreply@github.com>2019-12-30 13:18:04 +0100
commit75d494c5b14093efbf38d5def9d67e26fd99c253 (patch)
tree9a322a93a6786002a7324a1e17e7da6c0d493eb4 /src/test/java/pl/edu/mimuw/cloudatlas/model
parent7f03e1ddbd73831499d63eee1075b0b1226fa173 (diff)
parentc6f148b33422f0d1660a4289f413193011736475 (diff)
Merge pull request #78 from m-chrzan/qurnik
Run queries with Qurnik
Diffstat (limited to 'src/test/java/pl/edu/mimuw/cloudatlas/model')
-rw-r--r--src/test/java/pl/edu/mimuw/cloudatlas/model/TestUtil.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/java/pl/edu/mimuw/cloudatlas/model/TestUtil.java b/src/test/java/pl/edu/mimuw/cloudatlas/model/TestUtil.java
new file mode 100644
index 0000000..ed633d7
--- /dev/null
+++ b/src/test/java/pl/edu/mimuw/cloudatlas/model/TestUtil.java
@@ -0,0 +1,16 @@
+package pl.edu.mimuw.cloudatlas.model;
+
+public class TestUtil {
+ public static boolean valueLower(Value a, Value b) {
+ return ((ValueBoolean) a.isLowerThan(b)).getValue();
+ }
+
+ public static <T> int iterableSize(Iterable<T> iterable) {
+ int count = 0;
+ for (T attribute : iterable) {
+ count++;
+ }
+
+ return count;
+ }
+}