mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Update tests to match the changed text
This commit is contained in:
@@ -107,9 +107,10 @@ CastTrapsTestSuite.test("${t1}__${t2}")
|
||||
protocol P2 {}
|
||||
if #available(SwiftStdlib 5.5, *) {
|
||||
CastTrapsTestSuite.test("Unexpected null")
|
||||
.crashOutputMatches("Found unexpected null pointer value while trying to cast value of type '")
|
||||
.crashOutputMatches("Non-Optional value of type '")
|
||||
.crashOutputMatches("Foo'")
|
||||
.crashOutputMatches(" to '")
|
||||
.crashOutputMatches("holds a null pointer")
|
||||
.crashOutputMatches("(Detected while casting to '")
|
||||
.crashOutputMatches("P2'")
|
||||
.code
|
||||
{
|
||||
@@ -127,9 +128,9 @@ CastTrapsTestSuite.test("Unexpected null")
|
||||
#if _runtime(_ObjC)
|
||||
if #available(SwiftStdlib 5.5, *) {
|
||||
CastTrapsTestSuite.test("Unexpected Obj-C null")
|
||||
.crashOutputMatches("Found unexpected null pointer value while trying to cast value of type '")
|
||||
.crashOutputMatches("NSObject'")
|
||||
.crashOutputMatches(" to '")
|
||||
.crashOutputMatches("Non-Optional value of type 'NSObject'")
|
||||
.crashOutputMatches("holds a null pointer")
|
||||
.crashOutputMatches("(Detected while casting to '")
|
||||
.crashOutputMatches("P2'")
|
||||
.code
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user