mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 08:47:28 +01:00
19 lines
451 B
C++
19 lines
451 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$x+5#");
|
|
}
|