UniSet 2.45.1
Пространство имен tests.test_transformer

Классы

class  TestMinimalProgram
class  TestVariableTypes
class  TestInitialValues
class  TestIfStatement
class  TestAssignment
class  TestBinaryExpressions
class  TestUnaryExpressions
class  TestCaseStatement
class  TestForLoop
class  TestWhileLoop
class  TestRepeatLoop
class  TestControlFlowFixture

Функции

IRProgram _transform_source (str source)
str _load_fixture (str name)

Подробное описание

Tests for st2js.transformer module.

Tests the transformation of blark AST nodes into IR dataclasses.

Функции

◆ _load_fixture()

str tests.test_transformer._load_fixture ( str name)
protected
Load a test fixture file.

◆ _transform_source()

IRProgram tests.test_transformer._transform_source ( str source)
protected
Helper: parse ST source and transform to IR.