1"""
2Test that variables of floating point types are displayed 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 FloatTypesTestCase(AbstractBase.GenericTester):
16
17    mydir = AbstractBase.GenericTester.compute_mydir(__file__)
18
19    def test_float_type(self):
20        """Test that float-type variables are displayed correctly."""
21        self.build_and_run('float.cpp', set(['float']))
22
23    @skipUnlessDarwin
24    def test_float_type_from_block(self):
25        """Test that float-type variables are displayed correctly from a block."""
26        self.build_and_run('float.cpp', set(['float']), bc=True)
27