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

Классы

class  TestResolveType
class  TestCheckTypesBoolCoercion
class  TestCheckTypesRealToIntCoercion
class  TestCheckTypesNoCoercion
class  TestCheckTypesTypeErrors
class  TestCheckTypesPreservesStructure

Функции

 _make_program (body, inputs=None, outputs=None, locals_=None)
 _vars_dict (program)

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

Tests for the st2js type system module.

Tests type checking, type resolution, and coercion insertion for
IEC 61131-3 types (BOOL, INT, DINT, REAL).

Функции

◆ _make_program()

tests.test_type_system._make_program ( body,
inputs = None,
outputs = None,
locals_ = None )
protected
Build a minimal IRProgram for testing.

◆ _vars_dict()

tests.test_type_system._vars_dict ( program)
protected
Build a name->IRVariable dict from program declarations.