mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[poincare/test] Clean header inclusions
This commit is contained in:
committed by
Léa Saviot
parent
5d1cc521f4
commit
3271fc90a4
@@ -1,12 +1,5 @@
|
||||
#include <quiz.h>
|
||||
#include <poincare/expression.h>
|
||||
#include <poincare/rational.h>
|
||||
#include <poincare/addition.h>
|
||||
#include <apps/shared/global_context.h>
|
||||
#include <ion.h>
|
||||
#include <assert.h>
|
||||
#include "helper.h"
|
||||
#include "./tree/helpers.h"
|
||||
|
||||
using namespace Poincare;
|
||||
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
#include <quiz.h>
|
||||
#include <poincare/expression.h>
|
||||
#include <poincare/integer.h>
|
||||
#include <poincare/arithmetic.h>
|
||||
#include <assert.h>
|
||||
#include <utility>
|
||||
#include "helper.h"
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
#include <quiz.h>
|
||||
#include <ion.h>
|
||||
#include <assert.h>
|
||||
#include <apps/shared/global_context.h>
|
||||
#include <poincare/serialization_helper.h>
|
||||
#include "helper.h"
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
#include <quiz.h>
|
||||
#include <apps/shared/global_context.h>
|
||||
#include <poincare/expression.h>
|
||||
#include <poincare/include/poincare_nodes.h>
|
||||
#include <assert.h>
|
||||
#include "helper.h"
|
||||
|
||||
using namespace Poincare;
|
||||
@@ -79,7 +75,7 @@ void assert_multiplication_or_addition_is_ordered_as(Expression e1, Expression e
|
||||
&globalContext,
|
||||
true);
|
||||
} else {
|
||||
assert(e1.type() == ExpressionNode::Type::Addition);
|
||||
quiz_assert(e1.type() == ExpressionNode::Type::Addition);
|
||||
static_cast<Addition&>(e1).sortChildrenInPlace(
|
||||
[](const ExpressionNode * e1, const ExpressionNode * e2, bool canBeInterrupted) { return ExpressionNode::SimplificationOrder(e1, e2, false, canBeInterrupted); },
|
||||
&globalContext,
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
#include <quiz.h>
|
||||
#include <apps/shared/global_context.h>
|
||||
#include <poincare/decimal.h>
|
||||
#include <assert.h>
|
||||
#include "helper.h"
|
||||
#include "tree/helpers.h"
|
||||
|
||||
using namespace Poincare;
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
#include <quiz.h>
|
||||
#include <ion.h>
|
||||
#include <assert.h>
|
||||
#include "helper.h"
|
||||
|
||||
using namespace Poincare;
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
#include <quiz.h>
|
||||
#include <assert.h>
|
||||
#include <poincare_layouts.h>
|
||||
#include "helper.h"
|
||||
#include "tree/helpers.h"
|
||||
|
||||
using namespace Poincare;
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#include "helper.h"
|
||||
#include <apps/shared/global_context.h>
|
||||
#include <poincare/src/parsing/parser.h>
|
||||
#include <assert.h>
|
||||
|
||||
using namespace Poincare;
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
#include <quiz.h>
|
||||
#include <assert.h>
|
||||
#include <poincare/helpers.h>
|
||||
#include "helper.h"
|
||||
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
#include <quiz.h>
|
||||
#include <poincare/ieee754.h>
|
||||
#include <string.h>
|
||||
#include <ion.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include <cmath>
|
||||
#include "helper.h"
|
||||
|
||||
@@ -26,8 +23,8 @@ QUIZ_CASE(ieee754_next_and_previous) {
|
||||
assert_next_and_previous_IEEE754_is<float>(-0.0f, 0.0f);
|
||||
assert_next_and_previous_IEEE754_is<float>(-1.4E-45f, -0.0f);
|
||||
assert_next_and_previous_IEEE754_is<float>(-3.4359738E10f, -3.43597363E10f);
|
||||
assert(IEEE754<float>::next(3.4028235E38f) == INFINITY);
|
||||
assert(IEEE754<float>::previous(-3.4028235E38f) == -INFINITY);
|
||||
quiz_assert(IEEE754<float>::next(3.4028235E38f) == INFINITY);
|
||||
quiz_assert(IEEE754<float>::previous(-3.4028235E38f) == -INFINITY);
|
||||
|
||||
assert_next_and_previous_IEEE754_is<double>(0.0f, 4.94065645841246544176568792868E-324);
|
||||
assert_next_and_previous_IEEE754_is<double>(INFINITY, INFINITY);
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
#include <quiz.h>
|
||||
#include <poincare/integer.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "tree/helpers.h"
|
||||
#include "helper.h"
|
||||
|
||||
using namespace Poincare;
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
#include <quiz.h>
|
||||
#include <poincare_layouts.h>
|
||||
#include <apps/shared/global_context.h>
|
||||
#include <ion.h>
|
||||
#include <assert.h>
|
||||
#include "helper.h"
|
||||
#include "./tree/helpers.h"
|
||||
|
||||
using namespace Poincare;
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
#include <quiz.h>
|
||||
#include <poincare_layouts.h>
|
||||
#include "helper.h"
|
||||
|
||||
|
||||
@@ -1,14 +1,11 @@
|
||||
#include <quiz.h>
|
||||
#include <ion.h>
|
||||
#include <assert.h>
|
||||
#include <poincare_layouts.h>
|
||||
#include "helper.h"
|
||||
|
||||
using namespace Poincare;
|
||||
|
||||
QUIZ_CASE(poincare_layout_serialization) {
|
||||
assert(UCodePointLeftSystemParenthesis == 0x12);
|
||||
assert(UCodePointRightSystemParenthesis == 0x13);
|
||||
quiz_assert(UCodePointLeftSystemParenthesis == 0x12);
|
||||
quiz_assert(UCodePointRightSystemParenthesis == 0x13);
|
||||
|
||||
// AbsoluteValueLayout
|
||||
assert_layout_serialize_to(
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
#include <quiz.h>
|
||||
#include <poincare_layouts.h>
|
||||
#include <apps/shared/global_context.h>
|
||||
#include <ion.h>
|
||||
#include <assert.h>
|
||||
#include "helper.h"
|
||||
#include "./tree/helpers.h"
|
||||
|
||||
using namespace Poincare;
|
||||
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
#include <poincare/init.h>
|
||||
#include <poincare/exception_checkpoint.h>
|
||||
#include <ion.h>
|
||||
#include <cmath>
|
||||
#include <assert.h>
|
||||
#include <poincare/src/parsing/parser.h>
|
||||
#include "tree/helpers.h"
|
||||
#include "helper.h"
|
||||
|
||||
@@ -1,12 +1,5 @@
|
||||
#include <quiz.h>
|
||||
#include <poincare/preferences.h>
|
||||
#include <poincare/float.h>
|
||||
#include <poincare/decimal.h>
|
||||
#include <poincare/rational.h>
|
||||
#include <string.h>
|
||||
#include <ion.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include <cmath>
|
||||
#include "helper.h"
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#include <quiz.h>
|
||||
#include <poincare/print_int.h>
|
||||
#include <assert.h>
|
||||
#include "helper.h"
|
||||
|
||||
using namespace Poincare;
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
#include <quiz.h>
|
||||
#include <poincare/integer.h>
|
||||
#include <poincare/rational.h>
|
||||
#include <assert.h>
|
||||
#include "helper.h"
|
||||
#include "tree/helpers.h"
|
||||
|
||||
using namespace Poincare;
|
||||
|
||||
|
||||
@@ -1,12 +1,5 @@
|
||||
#include <quiz.h>
|
||||
#include <poincare/expression.h>
|
||||
#include <poincare/rational.h>
|
||||
#include <poincare/addition.h>
|
||||
#include <apps/shared/global_context.h>
|
||||
#include <ion.h>
|
||||
#include <assert.h>
|
||||
#include <ion/storage.h>
|
||||
#include "helper.h"
|
||||
#include "./tree/helpers.h"
|
||||
|
||||
using namespace Poincare;
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
#include <poincare/tree_handle.h>
|
||||
#include <poincare/init.h>
|
||||
#include <poincare/exception_checkpoint.h>
|
||||
#include <assert.h>
|
||||
#include "blob_node.h"
|
||||
#include "pair_node.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user