File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -107,9 +107,10 @@ CastTrapsTestSuite.test("${t1}__${t2}")
107
107
protocol P2 { }
108
108
if #available( SwiftStdlib 5 . 5 , * ) {
109
109
CastTrapsTestSuite . test ( " Unexpected null " )
110
- . crashOutputMatches ( " Found unexpected null pointer value while trying to cast value of type '" )
110
+ . crashOutputMatches ( " Non-Optional value of type '" )
111
111
. crashOutputMatches ( " Foo' " )
112
- . crashOutputMatches ( " to ' " )
112
+ . crashOutputMatches ( " holds a null pointer " )
113
+ . crashOutputMatches ( " (Detected while casting to ' " )
113
114
. crashOutputMatches ( " P2' " )
114
115
. code
115
116
{
@@ -127,9 +128,9 @@ CastTrapsTestSuite.test("Unexpected null")
127
128
#if _runtime(_ObjC)
128
129
if #available( SwiftStdlib 5 . 5 , * ) {
129
130
CastTrapsTestSuite . test ( " Unexpected Obj-C null " )
130
- . crashOutputMatches ( " Found unexpected null pointer value while trying to cast value of type '" )
131
- . crashOutputMatches ( " NSObject' " )
132
- . crashOutputMatches ( " to ' " )
131
+ . crashOutputMatches ( " Non-Optional value of type 'NSObject '" )
132
+ . crashOutputMatches ( " holds a null pointer " )
133
+ . crashOutputMatches ( " (Detected while casting to '" )
133
134
. crashOutputMatches ( " P2' " )
134
135
. code
135
136
{
You can’t perform that action at this time.
0 commit comments