             let older = Date(timeIntervalSinceReferenceDate: 0)
             let newer = Date(timeIntervalSinceReferenceDate: 3600 * 24 * 7)
             
-            XCTAssertEqual(formatter.string(from: older, to: newer),
-                           "Jan 1 – 8")
+            let result = formatter.string(from: older, to: newer)
+            XCTAssert(result.containsInOrder(requiresLastToBeAtEnd: true, "Jan", "1", "8"))
         }
         
         do {
             let older = Date(timeIntervalSinceReferenceDate: 3600 * 24 * 28)
             let newer = Date(timeIntervalSinceReferenceDate: 3600 * 24 * 34)
             
-            XCTAssertEqual(formatter.string(from: older, to: newer),
-                           "Jan 29 – 4")
+            let result = formatter.string(from: older, to: newer)
+            XCTAssert(result.containsInOrder(requiresLastToBeAtEnd: true, "Jan", "29", "4"))
+            XCTAssertNil(result.range(of: "Feb"))
         }
     }
     #endif

    #endif
#endif

class TestDateIntervalFormatter: XCTestCase {
    private var formatter: DateIntervalFormatter!
    

        let older = Date(timeIntervalSinceReferenceDate: 0)
        let newer = Date(timeIntervalSinceReferenceDate: 3600 * 24 * 60)
        
        let result = formatter.string(from: older, to: newer)
        XCTAssert(result.containsInOrder(requiresLastToBeAtEnd: true, "Jan", "1", "Mar", "2"))
    }
    
    #if NS_FOUNDATION_ALLOWS_TESTABLE_IMPORT && (os(macOS) || os(iOS) || os(tvOS) || os(watchOS))
