9 #include "../Equation.h" 10 #include "../math/Number.h" 12 #include <gtest/gtest.h> 15 namespace team22{
namespace Test {
namespace Backend {
16 using std::stringstream;
39 : equation(lexicalAnalyzer, &interpret)
49 strEquation << equation;
59 this->result = result;
77 EXPECT_EQ(testr.
error,
nullptr);
82 EXPECT_EQ(testr.
error,
nullptr);
87 EXPECT_EQ(testr.
error,
nullptr);
92 EXPECT_EQ(testr.
error,
nullptr);
97 EXPECT_EQ(testr.
error,
nullptr);
102 EXPECT_EQ(testr.
error,
nullptr);
107 EXPECT_EQ(testr.
error,
nullptr);
112 EXPECT_EQ(testr.
error,
nullptr);
117 EXPECT_EQ(testr.
error,
nullptr);
122 EXPECT_EQ(testr.
error,
nullptr);
127 EXPECT_EQ(testr.
error,
nullptr);
132 EXPECT_EQ(testr.
error,
nullptr);
137 EXPECT_EQ(testr.
error,
nullptr);
142 EXPECT_EQ(testr.
error,
nullptr);
147 EXPECT_EQ(testr.
error,
nullptr);
152 EXPECT_EQ(testr.
error,
nullptr);
157 EXPECT_EQ(testr.
error,
nullptr);
void registrResultCallback(ResultObserver *resultCallbackObject)
Třída reprezentující rovnici.
void registrLexCallback(LexIdentificationObserver *lexCallbackObject)
void pushSymbol(char symbol)
void registrEquationObserver(EquationObserver *equationObservers)
#define T22_NUMBER_EXPECT_NEAR(actual, expect, delta)
void onResultChange(team22::Math::Number result) override
LexicalAnalyzer lexicalAnalyzer
void onError(InterpretException exception) override
InterpretException * error
void onEquationChange() override