Commit 6f2ea500 authored by Nikita Sirgienko's avatar Nikita Sirgienko

[Julia] Minor tests fixes

parent e71b154b
......@@ -58,8 +58,7 @@ void TestJulia::testException()
Cantor::Expression *e = evalExp(QLatin1String("sqrt(-1)"));
QVERIFY(e != nullptr);
QCOMPARE(e->status(), Cantor::Expression::Error);
QVERIFY(e->result());
QVERIFY(e->result()->type() == Cantor::TextResult::Type);
QCOMPARE(e->results().size(), 0);
QVERIFY(
!e->errorMessage().isEmpty()
&& e->errorMessage().contains(QLatin1String(
......@@ -74,7 +73,7 @@ void TestJulia::testSyntaxError()
Cantor::Expression *e = evalExp(QLatin1String("for i = 1:10\nprint(i)"));
QVERIFY(e != nullptr);
QCOMPARE(e->status(), Cantor::Expression::Error);
QVERIFY(e->result()->type() == Cantor::TextResult::Type);
QCOMPARE(e->results().size(), 0);
QVERIFY(
!e->errorMessage().isEmpty()
&& e->errorMessage().contains(QLatin1String(
......@@ -143,6 +142,7 @@ void TestJulia::testInlinePlotWithExceptionAndPartialResult()
));
QVERIFY(e != nullptr);
QCOMPARE(e->status(), Cantor::Expression::Error);
QVERIFY(e->result());
QVERIFY(e->result()->type() == Cantor::TextResult::Type);
QCOMPARE(e->result()->data().toString(), QLatin1String("gonna plot"));
QVERIFY(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment