mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
29 lines
765 B
Swift
29 lines
765 B
Swift
// RUN: %target-resilience-test
|
|
// REQUIRES: executable_test
|
|
|
|
import StdlibUnittest
|
|
import class_remove_property
|
|
|
|
// Also import modules which are used by StdlibUnittest internally. This
|
|
// workaround is needed to link all required libraries in case we compile
|
|
// StdlibUnittest with -sil-serialize-all.
|
|
import SwiftPrivate
|
|
import SwiftPrivatePthreadExtras
|
|
#if _runtime(_ObjC)
|
|
import ObjectiveC
|
|
#endif
|
|
|
|
var ClassRemovePropertyTest = TestSuite("ClassRemoveProperty")
|
|
|
|
ClassRemovePropertyTest.test("RemoveStoredProperty") {
|
|
let dog = RemoveStoredProperty(first: "Barnaby",
|
|
middle: "Winston",
|
|
last: "Fluffington")
|
|
|
|
do {
|
|
expectEqual(dog.name, "Barnaby Winston Fluffington")
|
|
}
|
|
}
|
|
|
|
runAllTests()
|