Skip to content

Commit 610af1b

Browse files
committed
[PlaygroundLogger] Updated LegacyPlaygroundLoggerTests.testTypenameManagement() to account for Swift changes.
Swift has changed how it generates these typenames, so we need to update accordingly.
1 parent cffd458 commit 610af1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PlaygroundLogger/PlaygroundLoggerTests/LegacyPlaygroundLoggerTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ class LegacyPlaygroundLoggerTests: XCTestCase {
410410
}
411411
decodeLogdata()
412412

413-
XCTAssertEqual("SomeStruct #1 in PlaygroundLoggerTests.LegacyPlaygroundLoggerTests.testTypenameManagement() -> ()", structured.typeName)
413+
XCTAssert(structured.typeName.hasSuffix(".SomeStruct"))
414414
object = (1,2,2,4)
415415
logdata = legacyLog(instance: object, name: "object", id: 0, startLine: 0, endLine: 0, startColumn: 0, endColumn: 0) as! NSData
416416
decodeLogdata()
@@ -423,7 +423,7 @@ class LegacyPlaygroundLoggerTests: XCTestCase {
423423
object = Foo.Swift.Bar.Baz()
424424
logdata = legacyLog(instance: object, name: "object", id: 0, startLine: 0, endLine: 0, startColumn: 0, endColumn: 0) as! NSData
425425
decodeLogdata()
426-
XCTAssertEqual("Bar.Baz in Foo #1 in PlaygroundLoggerTests.LegacyPlaygroundLoggerTests.testTypenameManagement() -> ()", structured.typeName)
426+
XCTAssert(structured.typeName.hasSuffix(".Foo.Swift.Bar.Baz"))
427427
}
428428

429429
func testFloatDoubleDecoding() {

0 commit comments

Comments
 (0)