From 4d4b75bbc31a235a494b4d1d1d8e53b2bd894ddb Mon Sep 17 00:00:00 2001 From: Ramin Zaghi Date: Wed, 9 May 2012 13:52:20 +0000 Subject: [PATCH] applied review #127. --- headers/unit_test_xc_operation_x.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/headers/unit_test_xc_operation_x.h b/headers/unit_test_xc_operation_x.h index 7eeef40..df46339 100644 --- a/headers/unit_test_xc_operation_x.h +++ b/headers/unit_test_xc_operation_x.h @@ -104,11 +104,10 @@ arm_result_t test_operation() ftbl [ FTBL_IDX(opcode, impl) ] ( esp_buf[4] , esp_buf[2], esp_buf[3], tmp_len ); - fprintf ( stderr, "** NTOE: Due to the nature of this test we cannot use an assert - the values may or may not be the same... make sure NAN values are not geenrated by using FILL_FLOAT_ARRAY_\'LIMIT\'. \n" ); - for ( i = 0; i < tmp_len * opcode; i++ ) // at this point the two outputs must be identical { - // assert( esp_buf[0][i] == esp_buf[4][i] ); // check for not-a-number + assert ( esp_buf[0][i] == esp_buf[0][i] ); // check for NAN values + assert ( esp_buf[4][i] == esp_buf[4][i] ); if ( ! EQUALS_FLOAT( esp_buf[0][i] , esp_buf[4][i], ERROR_MARGIN_LARGE*10 ) ) { -- 2.7.4