UniSet 2.45.1
Класс tests.test_type_system.TestCheckTypesNoCoercion

Открытые члены

 test_int_assigned_to_real_no_coercion (self)
 test_int_assigned_to_int_no_coercion (self)
 test_bool_in_logical_context_no_coercion (self)

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

Tests for cases where no coercion should be inserted.

Методы

◆ test_bool_in_logical_context_no_coercion()

tests.test_type_system.TestCheckTypesNoCoercion.test_bool_in_logical_context_no_coercion ( self)
BOOL AND BOOL -- logical context, no coercion needed.

◆ test_int_assigned_to_int_no_coercion()

tests.test_type_system.TestCheckTypesNoCoercion.test_int_assigned_to_int_no_coercion ( self)
intVar := intExpr -- same type, no coercion.

◆ test_int_assigned_to_real_no_coercion()

tests.test_type_system.TestCheckTypesNoCoercion.test_int_assigned_to_real_no_coercion ( self)
realVar := intExpr -- JS handles INT->REAL automatically.