Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Unified Diff: source/test/cintltst/cgendtst.c

Issue 2435373002: Delete source/test (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/test/cintltst/cg7coll.c ('k') | source/test/cintltst/chashtst.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/test/cintltst/cgendtst.c
diff --git a/source/test/cintltst/cgendtst.c b/source/test/cintltst/cgendtst.c
deleted file mode 100644
index 0e7d54445b16420c843ddcc84f75498afbec160c..0000000000000000000000000000000000000000
--- a/source/test/cintltst/cgendtst.c
+++ /dev/null
@@ -1,52 +0,0 @@
-/********************************************************************
- * COPYRIGHT:
- * Copyright (c) 1997-2014, International Business Machines Corporation and
- * others. All Rights Reserved.
- ********************************************************************/
-/********************************************************************************
-*
-* File CGENDTST.C
-*********************************************************************************
-*/
-
-/* C API TEST FOR GENDER INFO */
-
-#include "unicode/utypes.h"
-#include "cmemory.h"
-
-#if !UCONFIG_NO_FORMATTING
-
-#include "cintltst.h"
-#include "unicode/ugender.h"
-
-static const UGender kAllFemale[] = {UGENDER_FEMALE, UGENDER_FEMALE};
-
-void addGendInfoForTest(TestNode** root);
-static void TestGenderInfo(void);
-
-#define TESTCASE(x) addTest(root, &x, "tsformat/cgendtst/" #x)
-
-void addGendInfoForTest(TestNode** root)
-{
- TESTCASE(TestGenderInfo);
-}
-
-static void TestGenderInfo(void) {
- UErrorCode status = U_ZERO_ERROR;
- const UGenderInfo* actual_gi = ugender_getInstance("fr_CA", &status);
- UGender actual;
- if (U_FAILURE(status)) {
- log_err_status(status, "Fail to create UGenderInfo - %s (Are you missing data?)", u_errorName(status));
- return;
- }
- actual = ugender_getListGender(actual_gi, kAllFemale, UPRV_LENGTHOF(kAllFemale), &status);
- if (U_FAILURE(status)) {
- log_err("Fail to get gender of list - %s\n", u_errorName(status));
- return;
- }
- if (actual != UGENDER_FEMALE) {
- log_err("Expected UGENDER_FEMALE got %d\n", actual);
- }
-}
-
-#endif /* #if !UCONFIG_NO_FORMATTING */
« no previous file with comments | « source/test/cintltst/cg7coll.c ('k') | source/test/cintltst/chashtst.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698