xref: /llvm-project/lldb/test/API/types/TestFloatTypes.py (revision 2238dcc39358353cac21df75c3c3286ab20b8f53)
1"""
2Test that variables of floating point types are displayed correctly.
3"""
4
5
6import AbstractBase
7
8import lldb
9from lldbsuite.test.decorators import *
10from lldbsuite.test.lldbtest import *
11from lldbsuite.test import lldbutil
12
13
14class FloatTypesTestCase(AbstractBase.GenericTester):
15    def test_float_type(self):
16        """Test that float-type variables are displayed correctly."""
17        self.build_and_run("float.cpp", set(["float"]))
18
19    @skipUnlessDarwin
20    def test_float_type_from_block(self):
21        """Test that float-type variables are displayed correctly from a block."""
22        self.build_and_run("float.cpp", set(["float"]), bc=True)
23