mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
21 lines
601 B
C++
21 lines
601 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::Builder(
|
|
CodePointLayout::Builder('2'),
|
|
VerticalOffsetLayout::Builder(
|
|
LayoutHelper::String("x+5", 3),
|
|
VerticalOffsetLayoutNode::Position::Superscript
|
|
)
|
|
);
|
|
assert(UCodePointLeftSystemParenthesis == '\x12');
|
|
assert(UCodePointRightSystemParenthesis == '\x13');
|
|
assert_expression_layout_serialize_to(layout, "2^\x12x+5\x13");
|
|
}
|