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 DoubleTypesExprTestCase(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_double_type(self):
22        """Test that double-type variable expressions are evaluated correctly."""
23        self.build_and_run_expr('double.cpp', set(['double']))
24
25    @skipUnlessDarwin
26    def test_double_type_from_block(self):
27        """Test that double-type variables are displayed correctly from a block."""
28        self.build_and_run_expr('double.cpp', set(['double']), bc=True)
29