openModeller  Version 1.5.0
test_rules_base.cpp File Reference
#include <TestHarness.h>
#include <openmodeller/Sample.hh>
#include <rules_base.hh>
Include dependency graph for test_rules_base.cpp:

Go to the source code of this file.

Classes

class  ExtGarpRule
 

Macros

#define eps   10e-6
 

Functions

 TEST (initialize, GarpRule)
 
bool checkEqualArray (Scalar *array1, Scalar *array2, int size, double veps)
 
 TEST (copy, GarpRule)
 
 TEST (clone, GarpRule)
 
 TEST (getCertainty1, GarpRule)
 
 TEST (getCertainty2, GarpRule)
 
 TEST (getError, GarpRule)
 
 TEST (Similar1, GarpRule)
 
 TEST (Similar2, GarpRule)
 
 TEST (Similar3, GarpRule)
 
 TEST (Similar4, GarpRule)
 

Variables

Scalar genes1 [8] = {-0.8, +0.8, -0.8, +0.8, -0.8, +0.8, -0.8, +0.8}
 
Scalar genes2 [8] = {-0.8, +0.8, -0.8, +0.8, -0.8, +0.8, -0.8, +0.8}
 
Scalar genes3 [8] = {-0.2, +0.8, -0.8, +0.8, -0.8, +0.8, -0.8, +0.8}
 
Scalar genes4 [8] = {+0.7, +0.8, -0.8, +0.8, -0.8, +0.8, -0.8, +0.8}
 
Scalar genes5 [8] = {-0.8, +0.8, -1.0, +1.0, -0.8, +0.8, -0.8, +0.8}
 
Scalar genes6 [8] = {-0.8, +0.8, -0.8, +0.8, -0.8, +0.8, -0.8, +0.8}
 
Scalar genes7 [8] = {-0.8, +0.8, -1.0, +0.9, -0.8, +0.8, -0.8, +0.8}
 
Scalar genes8 [8] = {-0.8, +0.8, -0.8, +0.8, -0.8, +0.8, -0.8, +0.8}
 

Detailed Description

Unit tests for rules_base.cpp

Author
Ricardo Scachetti Pereira (rpere.nosp@m.ira@.nosp@m.ku.ed.nosp@m.u)
Date
2004-04-07
Id:
test_rules_base.cpp 1026 2005-06-23 20:28:29Z kruland

LICENSE INFORMATION

Copyright(c), The Center for Research, University of Kansas, 2385 Irving Hill Road, Lawrence, KS 66044-4755, USA. Copyright(c), CRIA - Centro de Referencia em Informacao Ambiental

http://www.nhm.ku.edu

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details:

http://www.gnu.org/copyleft/gpl.html

Definition in file test_rules_base.cpp.

Macro Definition Documentation

#define eps   10e-6

Definition at line 76 of file test_rules_base.cpp.

Referenced by TEST().

Function Documentation

bool checkEqualArray ( Scalar array1,
Scalar array2,
int  size,
double  veps 
)

Definition at line 98 of file test_rules_base.cpp.

TEST ( initialize  ,
GarpRule   
)

Definition at line 78 of file test_rules_base.cpp.

References eps, GarpRule::getChrom1(), and GarpRule::getChrom2().

Here is the call graph for this function:

TEST ( copy  ,
GarpRule   
)

Definition at line 113 of file test_rules_base.cpp.

References GarpRule::copy(), eps, GarpRule::getChrom1(), and GarpRule::getChrom2().

Here is the call graph for this function:

TEST ( clone  ,
GarpRule   
)

Definition at line 136 of file test_rules_base.cpp.

References GarpRule::clone(), eps, GarpRule::getChrom1(), and GarpRule::getChrom2().

Here is the call graph for this function:

TEST ( getCertainty1  ,
GarpRule   
)

Definition at line 156 of file test_rules_base.cpp.

References eps, GarpRule::getCertainty(), and ExtGarpRule::setPrediction().

Here is the call graph for this function:

TEST ( getCertainty2  ,
GarpRule   
)

Definition at line 170 of file test_rules_base.cpp.

References eps, GarpRule::getCertainty(), and ExtGarpRule::setPrediction().

Here is the call graph for this function:

TEST ( getError  ,
GarpRule   
)

Definition at line 184 of file test_rules_base.cpp.

References eps, and GarpRule::getError().

Here is the call graph for this function:

TEST ( Similar1  ,
GarpRule   
)

Definition at line 202 of file test_rules_base.cpp.

References genes1, genes2, ExtGarpRule::setGenes(), and GarpRule::similar().

Here is the call graph for this function:

TEST ( Similar2  ,
GarpRule   
)

Definition at line 218 of file test_rules_base.cpp.

References genes3, genes4, ExtGarpRule::setGenes(), and GarpRule::similar().

Here is the call graph for this function:

TEST ( Similar3  ,
GarpRule   
)

Definition at line 234 of file test_rules_base.cpp.

References genes5, genes6, ExtGarpRule::setGenes(), and GarpRule::similar().

Here is the call graph for this function:

TEST ( Similar4  ,
GarpRule   
)

Definition at line 250 of file test_rules_base.cpp.

References genes7, genes8, ExtGarpRule::setGenes(), and GarpRule::similar().

Here is the call graph for this function:

Variable Documentation

Scalar genes1[8] = {-0.8, +0.8, -0.8, +0.8, -0.8, +0.8, -0.8, +0.8}

Definition at line 199 of file test_rules_base.cpp.

Referenced by TEST().

Scalar genes2[8] = {-0.8, +0.8, -0.8, +0.8, -0.8, +0.8, -0.8, +0.8}

Definition at line 200 of file test_rules_base.cpp.

Referenced by TEST().

Scalar genes3[8] = {-0.2, +0.8, -0.8, +0.8, -0.8, +0.8, -0.8, +0.8}

Definition at line 215 of file test_rules_base.cpp.

Referenced by TEST().

Scalar genes4[8] = {+0.7, +0.8, -0.8, +0.8, -0.8, +0.8, -0.8, +0.8}

Definition at line 216 of file test_rules_base.cpp.

Referenced by TEST().

Scalar genes5[8] = {-0.8, +0.8, -1.0, +1.0, -0.8, +0.8, -0.8, +0.8}

Definition at line 231 of file test_rules_base.cpp.

Referenced by TEST().

Scalar genes6[8] = {-0.8, +0.8, -0.8, +0.8, -0.8, +0.8, -0.8, +0.8}

Definition at line 232 of file test_rules_base.cpp.

Referenced by TEST().

Scalar genes7[8] = {-0.8, +0.8, -1.0, +0.9, -0.8, +0.8, -0.8, +0.8}

Definition at line 247 of file test_rules_base.cpp.

Referenced by TEST().

Scalar genes8[8] = {-0.8, +0.8, -0.8, +0.8, -0.8, +0.8, -0.8, +0.8}

Definition at line 248 of file test_rules_base.cpp.

Referenced by TEST().