|
/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* $Id: TestSuite.java,v 1.47 2004/03/16 15:51:25 metlov Exp $
*
* This file is part of the Java Expressions Library (JEL).
*
* (c) 1998 -- 2007 by Konstantin L. Metlov
*
* JEL is Distributed under the terms of GNU General Public License.
* This code comes with ABSOLUTELY NO WARRANTY.
* For license details see COPYING file in this directory.
*/
package gnu.jel;
import gnu.jel.tests.*;
import java.io.PrintStream;
import java.util.Stack;
public class IntegralExceptionsPassingTest extends TestingUtils {
public IntegralExceptionsPassingTest(String name) {
super(name);
}
Library lib;
Object[] rtp;
VariableProvider vp;
public void setUp() throws Exception {
Class[] dynamicLib=new Class[1];
rtp=new Object[1];
vp=new VariableProvider();
Class[] staticLib=new Class[2];
staticLib[0]=Class.forName("java.lang.Math");
// next line makes also static functions from VariablePrivider available
staticLib[1]=vp.getClass();
vp.xvar=5.0;
vp.strVar="strVar";
rtp[0]=vp;
dynamicLib[0]=vp.getClass();
lib=new Library(staticLib,dynamicLib,null,null,null);
}
public void test1() throws Throwable {
simExpression("(1+6)/(2+2-4)",null,null,rtp,lib,null);
}
public void test2() throws Throwable {
simExpression("throw_arg_eq_4(6-2)",null,null,rtp,lib,null);
}
};
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I am an analytical chemist and an educator. I program primarily to perform matrix computations for regression analysis, process signals, acquire data from sensors, and to control devices.
I participate in many open source development communities and Linux user forums. I do contract work for an environmental analytical laboratory, where I am primarily focused on LIMS programming and network administration.
I am a member of several community-interest groups such as the Prince Edward Island Watershed Alliance, the Lot 11 and Area Watershed Management Group, and the Petersham Historic Commission.