1 /*DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64
4 for INTEL64(R), AMD64(R)
6 Copyright(C) 2007-2009 Koine Yuusuke(koinec). All rights reserved.
8 Redistribution and use in source and binary forms, with or without
9 modification, are permitted provided that the following conditions are met:
11 1. Redistributions of source code must retain the above copyright notice,
12 this list of conditions and the following disclaimer.
13 2. Redistributions in binary form must reproduce the above copyright
14 notice, this list of conditions and the following disclaimer in the
15 documentation and/or other materials provided with the distribution.
17 THIS SOFTWARE IS PROVIDED BY Koine Yuusuke(koinec) ``AS IS'' AND ANY
18 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20 DISCLAIMED. IN NO EVENT SHALL Koine Yuusuke(koinec) OR CONTRIBUTORS BE
21 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
27 OF THE POSSIBILITY OF SUCH DAMAGE.
29 DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64*/
31 /* File Info -----------------------------------------------------------
35 ----------------------------------------------------------------------*/
37 #define DRD64_SRC_TEST_LIBEDITTEXT_CURSORFIND
38 #include"test_libedittext.h"
39 #include"drd64_libedittext.h"
42 /* LibEditText_FindString *********************************************/
43 /*--------------------------------------------------------------------*/
44 void Test_LibEditText_API_CursorAPI_FindString_test00_001(void)
50 i_result = LibEditText_Init();
51 CU_ASSERT( 0x00 == i_result );
53 i_tinfoid = LibEditText_OpenTextFile("./testdata", "x8664db.csv");
54 CU_ASSERT( 0x00 <= i_tinfoid );
56 i_curid = LibEditText_AllocCursor( i_tinfoid, 13 );
57 CU_ASSERT( 0x00 <= i_curid );
59 i_result = LibEditText_Debug_DebugTextInfo(
60 i_tinfoid, 0x01, "API FindString test00_001" );
61 CU_ASSERT( 0x00 == i_result );
63 i_result = LibEditText_FreeCursor( i_tinfoid, i_curid );
64 CU_ASSERT( 0x00 == i_result );
66 i_result = LibEditText_CloseFile( i_tinfoid );
67 CU_ASSERT( 0x00 == i_result );
69 i_result = LibEditText_Term();
70 CU_ASSERT( 0x00 == i_result );
76 /*----------------------------------------------------------------------
77 ----------------------------------------------------------------------*/
78 DRD64_TEST_LIBEDITTEXT_CURSORFIND_EXTERN
80 Test_LibEditText_CursorFind(
83 CU_pSuite pt_edittext;
85 pt_edittext = CU_add_suite( "LibEditText_CursorFind", NULL, NULL );
87 CU_add_test( pt_edittext, "EditText_CursorAPI_FindString_test00_003",
88 Test_LibEditText_API_CursorAPI_FindString_test00_001 );
94 /* EOF of drd64_.c ----------------------------------- */