+ ctest_resetTimeZone();
+}
+
+/*
+ * Testing udat_getBooleanAttribute and unum_setBooleanAttribute() to make sure basic C wrapper functionality is present
+ */
+void TestBooleanAttributes(void)
+{
+ UDateFormat *en;
+ UErrorCode status=U_ZERO_ERROR;
+ UBool initialState = TRUE;
+ UBool switchedState = FALSE;
+
+ log_verbose("\ncreating a date format with english locale\n");
+ en = udat_open(UDAT_FULL, UDAT_DEFAULT, "en_US", NULL, 0, NULL, 0, &status);
+ if(U_FAILURE(status)) {
+ log_data_err("error in creating the dateformat -> %s (Are you missing data?)\n",
+ myErrorName(status) );
+ return;
+ }
+
+
+ initialState = udat_getBooleanAttribute(en, UDAT_PARSE_ALLOW_NUMERIC, &status);
+ if(initialState != TRUE) switchedState = TRUE; // if it wasn't the default of TRUE, then flip what we expect
+
+ udat_setBooleanAttribute(en, UDAT_PARSE_ALLOW_NUMERIC, switchedState, &status);
+ if(switchedState != udat_getBooleanAttribute(en, UDAT_PARSE_ALLOW_NUMERIC, &status)) {
+ log_err("unable to switch states!");
+ return;
+ }
+
+ udat_close(en);