00001 /* $Id: irplib_wlxcorr-test.c,v 1.3 2008/03/25 11:12:45 llundin Exp $ 00002 * 00003 * This file is part of the ESO Common Pipeline Library 00004 * Copyright (C) 2001-2004 European Southern Observatory 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 */ 00020 00021 /* 00022 * $Author: llundin $ 00023 * $Date: 2008/03/25 11:12:45 $ 00024 * $Revision: 1.3 $ 00025 * $Name: uves-3_9_0 $ 00026 */ 00027 00028 /*----------------------------------------------------------------------------- 00029 Includes 00030 -----------------------------------------------------------------------------*/ 00031 00032 #ifdef HAVE_CONFIG_H 00033 #include <config.h> 00034 #endif 00035 00036 #include <irplib_wlxcorr.h> 00037 #include <math.h> 00038 #include <float.h> 00039 00040 /*----------------------------------------------------------------------------- 00041 Defines 00042 -----------------------------------------------------------------------------*/ 00043 00044 static void irplib_wlxcorr_find_1d_test(void); 00045 00046 00047 /*----------------------------------------------------------------------------- 00048 Main 00049 -----------------------------------------------------------------------------*/ 00050 int main(void) 00051 { 00052 /* Initialize CPL + IRPLIB */ 00053 cpl_test_init(PACKAGE_BUGREPORT, CPL_MSG_WARNING); 00054 00055 irplib_wlxcorr_find_1d_test(); 00056 00057 return cpl_test_end(0); 00058 } 00059 00060 00061 /*----------------------------------------------------------------------------*/ 00068 /*----------------------------------------------------------------------------*/ 00069 static void irplib_wlxcorr_find_1d_test(void) 00070 { 00071 00072 cpl_test_eq(irplib_wlxcorr_find_1d(NULL, NULL, NULL, 1, NULL, NULL), 00073 CPL_ERROR_NULL_INPUT); 00074 cpl_test_error(CPL_ERROR_NULL_INPUT); 00075 00076 return; 00077 }
1.5.1