File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -96,14 +96,14 @@ This is some markdown text [click me](apple.com)
96
96
}
97
97
98
98
func testFormat( ) throws {
99
- try assertMatch ( #"<text format="date-time" value="2023 -01-17 " />"# ) {
100
- Text ( Date ( timeIntervalSince1970 : 1673931600.0 ) , format: . dateTime)
99
+ try assertMatch ( #"<text format="date-time" value="0001 -01-01T00:00:00.000Z " />"# ) {
100
+ Text ( Date . distantPast , format: . dateTime)
101
101
}
102
102
try assertMatch ( #"<text format="url">apple.com</text>"# ) {
103
103
Text ( URL ( string: " apple.com " ) !, format: . url)
104
104
}
105
- try assertMatch ( #"<text format="iso8601" value="2023 -01-17T14:55:01.326Z " />"# ) {
106
- Text ( Date ( timeIntervalSince1970 : 1673967301.325973 ) , format: . iso8601)
105
+ try assertMatch ( #"<text format="iso8601" value="0001 -01-01T00:00:00.000Z " />"# ) {
106
+ Text ( Date . distantPast , format: . iso8601)
107
107
}
108
108
try assertMatch ( #"<text format="number" value="0.42" />"# ) {
109
109
Text ( 0.42 , format: . number)
You can’t perform that action at this time.
0 commit comments