alexbrandmeyer@626: // alexbrandmeyer@626: // carfac_test.h alexbrandmeyer@626: // CARFAC Open Source C++ Library alexbrandmeyer@626: // alexbrandmeyer@626: // Created by Alex Brandmeyer on 5/22/13. alexbrandmeyer@626: // alexbrandmeyer@626: // This C++ file is part of an implementation of Lyon's cochlear model: alexbrandmeyer@626: // "Cascade of Asymmetric Resonators with Fast-Acting Compression" alexbrandmeyer@626: // to supplement Lyon's upcoming book "Human and Machine Hearing" alexbrandmeyer@626: // alexbrandmeyer@626: // Licensed under the Apache License, Version 2.0 (the "License"); alexbrandmeyer@626: // you may not use this file except in compliance with the License. alexbrandmeyer@626: // You may obtain a copy of the License at alexbrandmeyer@626: // alexbrandmeyer@626: // http://www.apache.org/licenses/LICENSE-2.0 alexbrandmeyer@626: // alexbrandmeyer@626: // Unless required by applicable law or agreed to in writing, software alexbrandmeyer@626: // distributed under the License is distributed on an "AS IS" BASIS, alexbrandmeyer@626: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. alexbrandmeyer@626: // See the License for the specific language governing permissions and alexbrandmeyer@626: // limitations under the License. alexbrandmeyer@626: alexbrandmeyer@626: #ifndef __CARFAC_Open_Source_C___Library__carfac_test__ alexbrandmeyer@626: #define __CARFAC_Open_Source_C___Library__carfac_test__ alexbrandmeyer@626: alexbrandmeyer@626: // is currently used for reading text data in. This can be replaced by alexbrandmeyer@626: // another file reader. alexbrandmeyer@626: #include alexbrandmeyer@626: // GoogleTest is now included for running unit tests alexbrandmeyer@626: #include alexbrandmeyer@626: #include "carfac.h" alexbrandmeyer@626: alexbrandmeyer@626: // This variable defines the location of the test data used to compare this alexbrandmeyer@626: // C++ version's output with that of the Matlab version. It should be changed alexbrandmeyer@626: // when trying to build on a different system. alexbrandmeyer@626: #define TEST_SRC_DIR "/Users/alexbrandmeyer/aimc/carfac/test_data/" alexbrandmeyer@626: // Here we specify the level to which the output should match (10 decimals). ronw@630: #define PRECISION_LEVEL 1.0e-10 alexbrandmeyer@626: alexbrandmeyer@626: #endif /* defined(__CARFAC_Open_Source_C___Library__carfac_test__) */