[FFmpeg-cvslog] eval-test: add some otherwise untested functions.

Michael Niedermayer git at videolan.org
Thu Nov 1 00:38:54 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Oct 31 22:46:58 2012 +0100| [25a21c587c070fbcc79ff9e0004b6de4ec6ec692] | committer: Michael Niedermayer

eval-test: add some otherwise untested functions.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=25a21c587c070fbcc79ff9e0004b6de4ec6ec692
---

 libavutil/eval.c    |    5 +++++
 tests/ref/fate/eval |   15 +++++++++++++++
 2 files changed, 20 insertions(+)

diff --git a/libavutil/eval.c b/libavutil/eval.c
index 3cea170..dbad7c1 100644
--- a/libavutil/eval.c
+++ b/libavutil/eval.c
@@ -791,6 +791,11 @@ int main(int argc, char **argv)
         "taylor(eq(mod(ld(1),4),1)-eq(mod(ld(1),4),3), PI/2, 1)",
         "root(sin(ld(0))-1, 2)",
         "root(sin(ld(0))+6+sin(ld(0)/12)-log(ld(0)), 100)",
+        "7000000B*random(0)",
+        "squish(2)",
+        "gauss(0.1)",
+        "hypot(4,3)",
+        "gcd(30,55)*min(9,1)",
         NULL
     };
 
diff --git a/tests/ref/fate/eval b/tests/ref/fate/eval
index d58cc80..73a45d1 100644
--- a/tests/ref/fate/eval
+++ b/tests/ref/fate/eval
@@ -217,5 +217,20 @@ Evaluating 'root(sin(ld(0))-1, 2)'
 Evaluating 'root(sin(ld(0))+6+sin(ld(0)/12)-log(ld(0)), 100)'
 'root(sin(ld(0))+6+sin(ld(0)/12)-log(ld(0)), 100)' -> 60.965601
 
+Evaluating '7000000B*random(0)'
+'7000000B*random(0)' -> 0.003078
+
+Evaluating 'squish(2)'
+'squish(2)' -> 0.000335
+
+Evaluating 'gauss(0.1)'
+'gauss(0.1)' -> 0.396953
+
+Evaluating 'hypot(4,3)'
+'hypot(4,3)' -> 5.000000
+
+Evaluating 'gcd(30,55)*min(9,1)'
+'gcd(30,55)*min(9,1)' -> 5.000000
+
 12.700000 == 12.7
 0.931323 == 0.931322575



More information about the ffmpeg-cvslog mailing list