UniSet 2.45.1
Класс tests.test_codegen_scale.TestScaleFactorOutput

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

 test_output_scale_emits_multiplication (self)
 test_output_scale_at_bottom_of_on_step (self)
 test_output_scale_body_uses_st_name (self)
 test_no_scale_no_multiplication (self)
 test_multiple_output_scales (self)

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

Test scale factor on REAL output: multiplication at bottom of uniset_on_step.

Методы

◆ test_multiple_output_scales()

tests.test_codegen_scale.TestScaleFactorOutput.test_multiple_output_scales ( self)
Multiple outputs with scale factors generate multiple output lines.

◆ test_no_scale_no_multiplication()

tests.test_codegen_scale.TestScaleFactorOutput.test_no_scale_no_multiplication ( self)
Output without scale factor should not emit Math.round line.

◆ test_output_scale_at_bottom_of_on_step()

tests.test_codegen_scale.TestScaleFactorOutput.test_output_scale_at_bottom_of_on_step ( self)
Scale factor output should be at the bottom of uniset_on_step.

◆ test_output_scale_body_uses_st_name()

tests.test_codegen_scale.TestScaleFactorOutput.test_output_scale_body_uses_st_name ( self)
Body assignments should target the ST variable name.

◆ test_output_scale_emits_multiplication()

tests.test_codegen_scale.TestScaleFactorOutput.test_output_scale_emits_multiplication ( self)
REAL output with scale: 100 -> out_SensorName = Math.round(varName * 100);