The Winamp Remote Control suite
a remote control client and plugin for Winamp 2.x, 5.x
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
UtilsSuite.cpp
Go to the documentation of this file.
1
/*
2
* UtilsSuite.cpp
3
*
4
* Created on: 29 Sep 2012
5
* Author: Patrick
6
*/
7
8
9
#include "
catch.hpp
"
10
11
#include "
ColourU.h
"
12
13
TEST_CASE
(
"Utils/ColourPeriodic"
,
"tests the output of the periodic function"
)
14
{
15
16
CHECK
(
periodic
(0) == 1.0 );
17
CHECK
( abs(
periodic
(0.5)) < 1e-10 );
18
CHECK
(
periodic
(1) == 1.0 );
19
20
}
21
22
TEST_CASE
(
"Utils/ColourRainbow"
,
"tests the colour output"
)
23
{
24
25
CHECK
(
rainbowColour
(0) == 46026);
26
CHECK
(
rainbowColour
(250) == 16665396);
27
CHECK
(
rainbowColour
(500) == 46026);
28
}
UtilsSuite.cpp
Generated by
1.8.1.1