zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

RandTest.cpp (756B)


      1 /*
      2   ZynAddSubFX - a software synthesizer
      3 
      4   RandTest.h - CxxTest for Pseudo-Random Number Generator
      5   Copyright (C) 2009-2009 Mark McCurry
      6   Author: Mark McCurry
      7 
      8   This program is free software; you can redistribute it and/or
      9   modify it under the terms of the GNU General Public License
     10   as published by the Free Software Foundation; either version 2
     11   of the License, or (at your option) any later version.
     12 */
     13 
     14 #include "../Misc/Util.h"
     15 #include "test-suite.h"
     16 using namespace zyn;
     17 
     18 int main()
     19 {
     20     TS_ASSERT_DELTA(RND, 0.607781, 0.00001);
     21     TS_ASSERT_DELTA(RND, 0.591761, 0.00001);
     22     TS_ASSERT_DELTA(RND, 0.186133, 0.00001);
     23     TS_ASSERT_DELTA(RND, 0.286319, 0.00001);
     24     TS_ASSERT_DELTA(RND, 0.511766, 0.00001);
     25     return test_summary();
     26 };