@@ -874,8 +874,8 @@ extension AttachmentTests {
874874 @Test func imageFormatStringification( ) {
875875 let format : AttachableImageFormat = AttachableImageFormat . png
876876#if canImport(CoreGraphics) && canImport(_Testing_CoreGraphics)
877- #expect( String ( describing: format) == UTType . png. localizedDescription)
878- #expect( String ( reflecting: format) == " \( UTType . png. localizedDescription) ( \( UTType . png. identifier) ) " )
877+ #expect( String ( describing: format) == UTType . png. localizedDescription! )
878+ #expect( String ( reflecting: format) == " \( UTType . png. localizedDescription! ) ( \( UTType . png. identifier) ) at quality 1.0 " )
879879#elseif canImport(WinSDK) && canImport(_Testing_WinSDK)
880880 #expect( String ( describing: format) == " PNG format " )
881881 #expect( String ( reflecting: format) == " PNG format (27949969-876a-41d7-9447-568f6a35a4dc) at quality 1.0 " )
@@ -886,8 +886,8 @@ extension AttachmentTests {
886886 @Test func imageFormatStringificationWithQuality( ) {
887887 let format : AttachableImageFormat = AttachableImageFormat . jpeg ( withEncodingQuality: 0.5 )
888888#if canImport(CoreGraphics) && canImport(_Testing_CoreGraphics)
889- #expect( String ( describing: format) == " \( UTType . jpeg. localizedDescription) at 50% quality " )
890- #expect( String ( reflecting: format) == " \( UTType . jpeg. localizedDescription) ( \( UTType . jpeg. identifier) ) at quality 0.5 " )
889+ #expect( String ( describing: format) == " \( UTType . jpeg. localizedDescription! ) at 50% quality " )
890+ #expect( String ( reflecting: format) == " \( UTType . jpeg. localizedDescription! ) ( \( UTType . jpeg. identifier) ) at quality 0.5 " )
891891#elseif canImport(WinSDK) && canImport(_Testing_WinSDK)
892892 #expect( String ( describing: format) == " JPEG format at 50% quality " )
893893 #expect( String ( reflecting: format) == " JPEG format (1a34f5c1-4a5a-46dc-b644-1f4567e7a676) at quality 0.5 " )
0 commit comments