[poincare] Add a failing test on Expression

This commit is contained in:
Romain Goyet
2018-08-13 09:04:03 +02:00
parent 3ee18797db
commit 2fa52e2fef
2 changed files with 19 additions and 0 deletions

View File

@@ -190,6 +190,7 @@ tests += $(addprefix poincare/test/,\
tree/tree_by_value.cpp\
tree/tree_by_reference.cpp\
integer.cpp\
expression.cpp\
)
testsExpected += $(addprefix poincare/test/,\

View File

@@ -0,0 +1,18 @@
#include <quiz.h>
#include <poincare.h>
using namespace Poincare;
QUIZ_CASE(expression_can_start_uninitialized) {
Expression e;
{
Integer i(1);
e = i;
}
}
QUIZ_CASE(expression_can_be_copied_even_if_uninitialized) {
Expression e;
Expression f;
f = e;
}