mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
24 lines
574 B
Swift
24 lines
574 B
Swift
// RUN: %target-resilience-test
|
|
// REQUIRES: executable_test
|
|
|
|
// Use swift-version 4.
|
|
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
|
|
|
|
import StdlibUnittest
|
|
import struct_remove_property
|
|
|
|
|
|
var StructRemovePropertyTest = TestSuite("StructRemoveProperty")
|
|
|
|
StructRemovePropertyTest.test("RemoveStoredProperty") {
|
|
var dog = RemoveStoredProperty(first: "Barnaby",
|
|
middle: "Winston",
|
|
last: "Fluffington")
|
|
|
|
do {
|
|
expectEqual(dog.name, "Barnaby Winston Fluffington")
|
|
}
|
|
}
|
|
|
|
runAllTests()
|