@@ -27,14 +27,14 @@ struct `RFC_5322.EmailAddress Tests` {
2727 #expect( email. displayName == " John Doe " )
2828 #expect( email. localPart. description == " john " )
2929 #expect( email. domain. name == " example.com " )
30- #expect
( email
. addressValue == " [email protected] " ) 30+ #expect
( email
. address == " [email protected] " ) 3131 }
3232
3333 @Test
3434 func `Parse email with quoted display name`() throws {
3535 let email = try RFC_5322 . EmailAddress ( " \" Doe, John \" <[email protected] > " ) 3636 #expect( email. displayName == " Doe, John " )
37- #expect
( email
. addressValue == " [email protected] " ) 37+ #expect
( email
. address == " [email protected] " ) 3838 }
3939
4040 // MARK: - Creation from Components
@@ -83,14 +83,14 @@ struct `RFC_5322.EmailAddress Tests` {
8383 func `Exclamation mark ( !) is accepted in local- part`() throws {
8484 let email = try RFC_5322 . EmailAddress ( " [email protected] " ) 8585 #expect( email. localPart. description == " user!tag " )
86- #expect
( email
. addressValue == " [email protected] " ) 86+ #expect
( email
. address == " [email protected] " ) 8787 }
8888
8989 @Test
9090 func `Pipe character ( |) is accepted in local- part`() throws {
9191 let email = try RFC_5322 . EmailAddress ( " user|[email protected] " ) 9292 #expect( email. localPart. description == " user|tag " )
93- #expect
( email
. addressValue == " user|[email protected] " ) 93+ #expect
( email
. address == " user|[email protected] " ) 9494 }
9595
9696 @Test
@@ -114,7 +114,7 @@ struct `RFC_5322.EmailAddress Tests` {
114114
115115 for address in testAddresses {
116116 let email = try RFC_5322 . EmailAddress ( address)
117- #expect( email. addressValue == address)
117+ #expect( email. address == address)
118118 }
119119 }
120120
@@ -149,16 +149,16 @@ struct `RFC_5322.EmailAddress Tests` {
149149 #expect
( formatted
== " \" Doe, John \" <[email protected] > " ) 150150 }
151151
152- // MARK: - addressValue Property
152+ // MARK: - address Property
153153
154154 @Test
155- func `addressValue return s email without display name`() throws {
155+ func `address return s email without display name`() throws {
156156 let email = try RFC_5322 . EmailAddress (
157157 displayName: " John Doe " ,
158158 localPart: . init( " john " ) ,
159159 domain: . init( " example.com " )
160160 )
161- #expect
( email
. addressValue == " [email protected] " ) 161+ #expect
( email
. address == " [email protected] " ) 162162 }
163163
164164 // MARK: - Validation Errors
0 commit comments