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

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

 test_real_assigned_to_int_gets_coerced (self)
 test_real_expression_assigned_to_dint_gets_coerced (self)

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

Tests for REAL-to-INT coercion on assignment.

Методы

◆ test_real_assigned_to_int_gets_coerced()

tests.test_type_system.TestCheckTypesRealToIntCoercion.test_real_assigned_to_int_gets_coerced ( self)
intVar := realExpr should wrap realExpr in IRTypeCoercion(REAL->INT).

◆ test_real_expression_assigned_to_dint_gets_coerced()

tests.test_type_system.TestCheckTypesRealToIntCoercion.test_real_expression_assigned_to_dint_gets_coerced ( self)
dintVar := 1.5 + 2.5 should coerce the REAL result to DINT.