diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2013-01-23 00:02:36 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-01-24 12:19:01 +0100 |
commit | 2ed0803c6c994c540bdf0849473e1baaad6af511 (patch) | |
tree | 13abbc72c1972a8aeb0788d7262bf78f6bb4c1b6 /tests | |
parent | 056664ff25c674e2bb5c448d4cd646a09fc87607 (diff) | |
download | ffmpeg-2ed0803c6c994c540bdf0849473e1baaad6af511.tar.gz |
lavu/eval: extend if/ifnot functions to accept a third parameter
Add support to an if/else construct, simplify logic in expressions.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ref/fate/eval | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ref/fate/eval b/tests/ref/fate/eval index 8dda06b998..91a8abf171 100644 --- a/tests/ref/fate/eval +++ b/tests/ref/fate/eval @@ -205,12 +205,24 @@ Evaluating 'pow(-1,1.23)' Evaluating 'if(1, 2)' 'if(1, 2)' -> 2.000000 +Evaluating 'if(1, 1, 2)' +'if(1, 1, 2)' -> 1.000000 + +Evaluating 'if(0, 1, 2)' +'if(0, 1, 2)' -> 2.000000 + Evaluating 'ifnot(0, 23)' 'ifnot(0, 23)' -> 23.000000 Evaluating 'ifnot(1, NaN) + if(0, 1)' 'ifnot(1, NaN) + if(0, 1)' -> 0.000000 +Evaluating 'ifnot(1, 1, 2)' +'ifnot(1, 1, 2)' -> 2.000000 + +Evaluating 'ifnot(0, 1, 2)' +'ifnot(0, 1, 2)' -> 1.000000 + Evaluating 'taylor(1, 1)' 'taylor(1, 1)' -> 2.718282 |