+tests = [ -- Asctime
+ property ( convertUnsafe ( Tagged "Sun Nov 6 08:49:37 1994"
+ ∷ Tagged Asctime Ascii
+ )
+ ≡ referenceLocalTime
+ )
+
+ , property ( ( Tagged "Sun Nov 6 08:49:37 1994"
+ ∷ Tagged Asctime Ascii
+ )
+ ≡ cs referenceLocalTime
+ )
+
+ , property $ \lt → lt ≡ convertUnsafe ( cs (lt ∷ LocalTime)
+ ∷ Tagged Asctime Ascii
+ )
+
+ -- RFC733
+ , property ( RFC733.fromAscii "Sunday, 06-Nov-94 08:49:37 GMT"
+ ≡ Right referenceZonedTime )
+
+ , property ( "Sunday, 06-Nov-1994 08:49:37 GMT"
+ ≡ RFC733.toAscii referenceZonedTime )
+
+ , property $ \zt → Right zt ≡ RFC733.fromAscii (RFC733.toAscii zt)
+
+ -- RFC1123
+ , property ( RFC1123.fromAscii "Sun, 06 Nov 1994 08:49:37 GMT"
+ ≡ Right referenceZonedTime )
+
+ , property ( "Sun, 06 Nov 1994 08:49:37 GMT"
+ ≡ RFC1123.toAscii referenceZonedTime )
+
+ , property $ \zt → Right zt ≡ RFC1123.fromAscii (RFC1123.toAscii zt)
+
+ -- HTTP
+ , property $ \ut → Right ut ≡ HTTP.fromAscii (HTTP.toAscii ut )
+ , property $ \ut → Right ut ≡ HTTP.fromAscii (untag (cs (ut2lt ut) ∷ Tagged Asctime Ascii))
+ , property $ \ut → Right ut ≡ HTTP.fromAscii (RFC733.toAscii (ut2zt ut))
+ , property $ \ut → Right ut ≡ HTTP.fromAscii (RFC1123.toAscii (ut2zt ut))