summaryrefslogtreecommitdiff
path: root/src/tests/xb_test_mdx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/xb_test_mdx.cpp')
-rwxr-xr-xsrc/tests/xb_test_mdx.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/tests/xb_test_mdx.cpp b/src/tests/xb_test_mdx.cpp
index 2ef5ffb..680be5c 100755
--- a/src/tests/xb_test_mdx.cpp
+++ b/src/tests/xb_test_mdx.cpp
@@ -1,4 +1,4 @@
-/* xb_test_ndx.cpp
+/* xb_test_mdx.cpp
XBase64 Software Library
@@ -280,9 +280,18 @@ int main( int argCnt, char **av )
iRc += TestMethod( iPo, "CheckTagIntegrity(7)", V4DbfX2->CheckTagIntegrity( 1, 2 ), XB_NO_ERROR );
+
+
+ iRc2 = V4DbfX2->CreateTag( "MDX", "TAG2", "CHAR27", ".NOT. DELETED()", 0, 1, XB_OVERLAY, &pIx, &pTag );
+ iRc += TestMethod( iPo, "CreateTag(5)", iRc2, 0 );
+
+ iRc2 += V4DbfX2->Reindex( 1 );
+ iRc += TestMethod( iPo, "Reindex()", iRc2, XB_KEY_NOT_UNIQUE );
+
+
x.CloseAllTables();
- delete V4DbfX1;
- delete V4DbfX2;
+// delete V4DbfX1;
+// delete V4DbfX2;
if( iPo > 0 || iRc < 0 )
fprintf( stdout, "Total Errors = %d\n", iRc * -1 );