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

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

 test_bool_in_addition_gets_coerced (self)
 test_bool_literal_in_multiplication_gets_coerced (self)

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

Tests for BOOL-to-INT coercion in arithmetic contexts.

Методы

◆ test_bool_in_addition_gets_coerced()

tests.test_type_system.TestCheckTypesBoolCoercion.test_bool_in_addition_gets_coerced ( self)
x + boolVar should wrap boolVar in IRTypeCoercion(BOOL->INT).

◆ test_bool_literal_in_multiplication_gets_coerced()

tests.test_type_system.TestCheckTypesBoolCoercion.test_bool_literal_in_multiplication_gets_coerced ( self)
5 * TRUE should wrap TRUE in IRTypeCoercion(BOOL->INT).