xref: /llvm-project/lldb/test/API/types/TestDoubleTypes.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 DoubleTypesTestCase(AbstractBase.GenericTester):
15    def test_double_type(self):
16        """Test that double-type variables are displayed correctly."""
17        self.build_and_run("double.cpp", set(["double"]))
18
19    @skipUnlessDarwin
20    def test_double_type_from_block(self):
21        """Test that double-type variables are displayed correctly from a block."""
22        self.build_and_run("double.cpp", set(["double"]), bc=True)
23