summaryrefslogtreecommitdiff
path: root/project2/basics/tests/equals.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'project2/basics/tests/equals.cpp')
-rw-r--r--project2/basics/tests/equals.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/project2/basics/tests/equals.cpp b/project2/basics/tests/equals.cpp
new file mode 100644
index 0000000..ba8c695
--- /dev/null
+++ b/project2/basics/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);
+