1""" 2Test that variable expressions of floating point types are evaluated correctly. 3""" 4 5 6 7import AbstractBase 8 9import lldb 10from lldbsuite.test.decorators import * 11from lldbsuite.test.lldbtest import * 12from lldbsuite.test import lldbutil 13 14 15class FloatTypesExprTestCase(AbstractBase.GenericTester): 16 17 # rdar://problem/8493023 18 # test/types failures for Test*TypesExpr.py: element offset computed wrong 19 # and sign error? 20 21 def test_float_type(self): 22 """Test that float-type variable expressions are evaluated correctly.""" 23 self.build_and_run_expr('float.cpp', set(['float'])) 24 25 @skipUnlessDarwin 26 def test_float_type_from_block(self): 27 """Test that float-type variables are displayed correctly from a block.""" 28 self.build_and_run_expr('float.cpp', set(['float']), bc=True) 29