]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/test/intltest/dtfmttst.h
ICU-400.38.tar.gz
[apple/icu.git] / icuSources / test / intltest / dtfmttst.h
index 8edb2a341696597af3e3fc3d10b2566bec219e3d..cf49009338632baa299951fb3f70c5162bb8c0cb 100644 (file)
@@ -1,6 +1,6 @@
 /********************************************************************
  * COPYRIGHT: 
- * Copyright (c) 1997-2004, International Business Machines Corporation and
+ * Copyright (c) 1997-2009, International Business Machines Corporation and
  * others. All Rights Reserved.
  ********************************************************************/
 
@@ -109,10 +109,6 @@ public:
      */
     virtual void TestBadInput135(void);
  
-private:
-    static const char* parseFormats[];
-    static const char* inputStrings[];
 public:
     /**
      * Verify the correct behavior when parsing an array of inputs against an
@@ -138,7 +134,13 @@ public:
      * Further test the formatting of time zones.
      */
     virtual void TestDateFormatZone146(void);
+
+    void TestTimeZoneStringsAPI(void);
+
+#if ICU_4_2_1
+    void TestGMTParsing(void);
+#endif
+
 public: // package
     /**
      * Test the formatting of dates in different locales.
@@ -157,12 +159,82 @@ public: // package
 
     void TestGreekMay(void);
 
+    void TestGenericTime(void);
+
+    void TestGenericTimeZoneOrder(void);
+
+#if ICU_4_2_1
+    void Test6338(void);
+
+    void Test6726(void);
+
+    void Test6880(void);
+#endif
+
+public:
+    /**
+     * Test host-specific formatting.
+     */
+    void TestHost(void);
+
+public:
+    /**
+     * Test patterns added in CLDR 1.4
+     */
+    void TestEras(void);
+
+    void TestNarrowNames(void);
+
+    void TestStandAloneDays(void);
+
+    void TestStandAloneMonths(void);
+
+    void TestQuarters(void);
+    
+    void TestZTimeZoneParsing(void);
+
+    void TestRelativeClone(void);
+    
+    void TestHostClone(void);
+
+#if ICU_4_2_1
+    void TestTimeZoneDisplayName(void);
+
+    void TestRoundtripWithCalendar(void);
+#endif
+
+public:
+    /***
+     * Test Relative Dates
+     */
+     void TestRelative(void);
+#if !ICU_4_2_1
+    void TestTimeZoneDisplayName(void);
+#endif
+/*   void TestRelativeError(void);
+     void TestRelativeOther(void);
+*/
+
+public:
+    /**
+     * Test parsing a number as a string
+     */
+    void TestNumberAsStringParsing(void);
+    
+private:
+      void TestRelative(int daysdelta, 
+                                  const Locale& loc,
+                                  const char *expectChars);
+
  private:
     void expectParse(const char** data, int32_t data_length,
                      const Locale& locale);
 
     void expect(const char** data, int32_t data_length,
                 const Locale& loc);
+
+    void expectFormat(const char **data, int32_t data_length,
+                      const Locale &locale);
 };
 
 #endif /* #if !UCONFIG_NO_FORMATTING */