diff options
-rw-r--r-- | project2/common/tests/equals.cpp | 24 |
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); + |