ca.nengo
Class TestUtil

java.lang.Object
  extended by ca.nengo.TestUtil

public class TestUtil
extends java.lang.Object

Common utilities for unit tests.

Author:
Bryan Tripp

Constructor Summary
TestUtil()
           
 
Method Summary
static void assertClose(float a, float b, float tolerance)
          Assertion that two float values are close to each other, within given tolerance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestUtil

public TestUtil()
Method Detail

assertClose

public static void assertClose(float a,
                               float b,
                               float tolerance)
Assertion that two float values are close to each other, within given tolerance.

Parameters:
a - A float value
b - Another float value
tolerance - Maximum expected difference between them