summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2013-03-18 18:57:51 +0000
committerrandomdan <randomdan@localhost>2013-03-18 18:57:51 +0000
commitcd5fbb2b3483a52511d557d3109a0db462a713d4 (patch)
tree96af737420266e9c02fc9274023d273294eb40bf
parentFix route parameter output (diff)
downloadproject2-cd5fbb2b3483a52511d557d3109a0db462a713d4.tar.bz2
project2-cd5fbb2b3483a52511d557d3109a0db462a713d4.tar.xz
project2-cd5fbb2b3483a52511d557d3109a0db462a713d4.zip
Add basic equality test
-rw-r--r--project2/common/tests/equals.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/project2/common/tests/equals.cpp b/project2/common/tests/equals.cpp
new file mode 100644
index 0000000..b2a1bf4
--- /dev/null
+++ b/project2/common/tests/equals.cpp
@@ -0,0 +1,24 @@
+#include <pch.hpp>
+#include "../test.h"
+#include "../scriptLoader.h"
+#include "../rowProcessor.h"
+
+class Equals : public Test {
+ public:
+ Equals(ScriptNodePtr s) :
+ SourceObject(s),
+ Test(s),
+ a(s, "a"),
+ b(s, "b")
+ {
+ }
+
+ bool passes() const {
+ return (a() == b());
+ }
+
+ private:
+ Variable a, b;
+};
+DECLARE_LOADER("equals", Equals);
+