mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
19 lines
457 B
C++
19 lines
457 B
C++
#include <quiz.h>
|
|
#include <poincare_layouts.h>
|
|
#include <ion.h>
|
|
#include <assert.h>
|
|
#include "helper.h"
|
|
|
|
using namespace Poincare;
|
|
|
|
QUIZ_CASE(poincare_vertical_offset_layout_serialize) {
|
|
HorizontalLayout layout = HorizontalLayout(
|
|
CharLayout('2'),
|
|
VerticalOffsetLayout(
|
|
LayoutHelper::String("x+5", 3),
|
|
VerticalOffsetLayoutNode::Type::Superscript
|
|
)
|
|
);
|
|
assert_expression_layout_serialize_to(layout, "2\x99x+5\x99");
|
|
}
|