summaryrefslogtreecommitdiffstats
path: root/sigcore/test/TestRange.h
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-12-23 16:07:04 -0500
committerBen Boeckel <MathStuf@gmail.com>2008-12-23 16:07:04 -0500
commitb8d7cbcdd25c43657e4097f42af20b8bf3725b4b (patch)
tree9be315f32cabd63202f189baa89eb9f4160bfe75 /sigcore/test/TestRange.h
parenteb2308b8035302b76f794e83b9cf5c5f4cff7a4c (diff)
downloadsigen-b8d7cbcdd25c43657e4097f42af20b8bf3725b4b.tar.gz
sigen-b8d7cbcdd25c43657e4097f42af20b8bf3725b4b.tar.xz
sigen-b8d7cbcdd25c43657e4097f42af20b8bf3725b4b.zip
Fixed the Range test
Diffstat (limited to 'sigcore/test/TestRange.h')
-rw-r--r--sigcore/test/TestRange.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/sigcore/test/TestRange.h b/sigcore/test/TestRange.h
new file mode 100644
index 00000000..301711a5
--- /dev/null
+++ b/sigcore/test/TestRange.h
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2008 Ben Boeckel <MathStuf@gmail.com>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef TESTRANGE
+#define TESTRANGE
+
+// Sigcore includes
+#include "../Range.h"
+
+class TestRange : public QObject
+{
+ Q_OBJECT
+
+ private slots:
+ void set();
+ void setMinimum();
+ void setMaximum();
+ void valid();
+ void in();
+ void intersection();
+ void setUnion();
+ void negation();
+ void addition();
+ void subtraction();
+ void multiplication();
+ void division();
+ void equality();
+};
+
+#endif
+