mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-30 04:00:02 +02:00
21 lines
521 B
C++
21 lines
521 B
C++
#include <quiz.h>
|
|
#include <poincare.h>
|
|
#include <ion.h>
|
|
#include <assert.h>
|
|
#include "helper.h"
|
|
|
|
using namespace Poincare;
|
|
|
|
QUIZ_CASE(poincare_vertical_offset_layout_serialize) {
|
|
assert_parsed_expression_layout_serialize_to_self("(2)^(3)");
|
|
|
|
HorizontalLayoutRef layout = HorizontalLayoutRef(
|
|
CharLayoutRef('2'),
|
|
VerticalOffsetLayoutRef(
|
|
LayoutHelper::String("4+5", 3),
|
|
VerticalOffsetLayoutNode::Type::Superscript
|
|
)
|
|
);
|
|
assert_expression_layout_serialize_to(layout, "2^(4+5)");
|
|
}
|