blob: 01e5812565218eb4678fe8e905758948f5a2141e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include <pch.hpp>
#include <test.h>
#include <scriptLoader.h>
#include <variables.h>
class GreaterThan : public Test {
public:
GreaterThan(ScriptNodePtr s) :
SourceObject(s),
Test(s),
a(s, "a"),
b(s, "b")
{
}
bool passes(ExecContext * ec) const {
return (a(ec) > b(ec));
}
private:
Variable a, b;
};
NAMEDFACTORY("greaterthan", GreaterThan, TestFactory);
|