Migrated sqlite cursor test cases to not specify any specific collation rule.
[platform/upstream/evolution-data-server.git] / tests / libedata-book / test-sqlite-cursor-move-by-en-US.c
index 697bf7d..7c095ec 100644 (file)
@@ -20,55 +20,27 @@ main (gint argc,
        /* Ensure that the client and server get the same locale */
        g_assert (g_setenv ("EDS_COLLATE", "en_US.UTF-8", TRUE));
 
-       /* Try them all once in the normal base locale */
-       data = move_by_test_new ("/EbSdbCursor/en_US/Move/Forward", FALSE);
+       data = move_by_test_new ("/EbSdbCursor/en_US/Move/Forward");
        move_by_test_add_assertion (data, 5, 11, 1, 2, 5, 6);
        move_by_test_add_assertion (data, 6, 4, 3, 7, 8, 15, 17);
        move_by_test_add (data, FALSE);
 
-       data = move_by_test_new ("/EbSdbCursor/en_US/Move/ForwardOnNameless", FALSE);
+       data = move_by_test_new ("/EbSdbCursor/en_US/Move/ForwardOnNameless");
        move_by_test_add_assertion (data, 1, 11);
        move_by_test_add_assertion (data, 3, 1, 2, 5);
        move_by_test_add (data, FALSE);
 
-       data = move_by_test_new ("/EbSdbCursor/en_US/Move/Backwards", FALSE);
+       data = move_by_test_new ("/EbSdbCursor/en_US/Move/Backwards");
        move_by_test_add_assertion (data, -5, 20, 19, 9, 13, 12);
        move_by_test_add_assertion (data, -8, 14, 10, 18, 16, 17, 15, 8, 7);
        move_by_test_add (data, FALSE);
 
-       data = move_by_test_new ("/EbSdbCursor/en_US/Filtered/Move/Forward", FALSE);
+       data = move_by_test_new ("/EbSdbCursor/en_US/Filtered/Move/Forward");
        move_by_test_add_assertion (data, 5, 11, 1, 2, 5, 3);
        move_by_test_add_assertion (data, 8, 8, 17, 16, 18, 10, 14, 12, 9);
        move_by_test_add (data, TRUE);
 
-       data = move_by_test_new ("/EbSdbCursor/en_US/Filtered/Move/Backwards", FALSE);
-       move_by_test_add_assertion (data, -5, 9, 12, 14, 10, 18);
-       move_by_test_add_assertion (data, -8, 16, 17, 8, 3, 5, 2, 1, 11);
-       move_by_test_add (data, TRUE);
-
-
-       /* Try them all again with collation = phonebook */
-       data = move_by_test_new ("/EbSdbCursor/en_US@collation=phonebook/Move/Forward", TRUE);
-       move_by_test_add_assertion (data, 5, 11, 1, 2, 5, 6);
-       move_by_test_add_assertion (data, 6, 4, 3, 7, 8, 15, 17);
-       move_by_test_add (data, FALSE);
-
-       data = move_by_test_new ("/EbSdbCursor/en_US@collation=phonebook/Move/ForwardOnNameless", TRUE);
-       move_by_test_add_assertion (data, 1, 11);
-       move_by_test_add_assertion (data, 3, 1, 2, 5);
-       move_by_test_add (data, FALSE);
-
-       data = move_by_test_new ("/EbSdbCursor/en_US@collation=phonebook/Move/Backwards", TRUE);
-       move_by_test_add_assertion (data, -5, 20, 19, 9, 13, 12);
-       move_by_test_add_assertion (data, -8, 14, 10, 18, 16, 17, 15, 8, 7);
-       move_by_test_add (data, FALSE);
-
-       data = move_by_test_new ("/EbSdbCursor/en_US@collation=phonebook/Filtered/Move/Forward", TRUE);
-       move_by_test_add_assertion (data, 5, 11, 1, 2, 5, 3);
-       move_by_test_add_assertion (data, 8, 8, 17, 16, 18, 10, 14, 12, 9);
-       move_by_test_add (data, TRUE);
-
-       data = move_by_test_new ("/EbSdbCursor/en_US@collation=phonebook/Filtered/Move/Backwards", TRUE);
+       data = move_by_test_new ("/EbSdbCursor/en_US/Filtered/Move/Backwards");
        move_by_test_add_assertion (data, -5, 9, 12, 14, 10, 18);
        move_by_test_add_assertion (data, -8, 16, 17, 8, 3, 5, 2, 1, 11);
        move_by_test_add (data, TRUE);