| 1 | // Purpose: |
| 2 | // Check that a \DexExpectWatchValue float_range that is not large enough |
| 3 | // detects unexpected watch values. |
| 4 | // |
| 5 | // UNSUPPORTED: system-darwin |
| 6 | // |
| 7 | // RUN: %dexter_regression_test_cxx_build %s -o %t |
| 8 | // RUN: not %dexter_regression_test_run --binary %t -- %s | FileCheck %s |
| 9 | // CHECK: float_range_out_range.cpp: |
| 10 | |
| 11 | int main() { |
| 12 | float a = 1.0f; |
| 13 | a = a - 0.5f; |
| 14 | return a; //DexLabel('check') |
| 15 | } |
| 16 | |
| 17 | // DexExpectWatchValue('a', '1.00000', from_line=ref('check1'), to_line=ref('check2'), float_range=0.4) |
| 18 | |