1 | // Purpose: |
2 | // Check that \DexExpectWatchValue float_range=0.5 considers a range |
3 | // difference of 0.49999 to be an expected watch value. |
4 | // |
5 | // UNSUPPORTED: system-darwin |
6 | // |
7 | // RUN: %dexter_regression_test_build %s -o %t |
8 | // RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s |
9 | // CHECK: float_range_small.cpp: |
10 | |
11 | int main() { |
12 | float a = 1.0f; |
13 | a = a - 0.49999f; |
14 | return a; //DexLabel('check') |
15 | } |
16 | |
17 | // DexExpectWatchValue('a', '1.0', on_line=ref('check'), float_range=0.5) |
18 | |