mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
18 lines
352 B
Swift
18 lines
352 B
Swift
// RUN: %target-resilience-test
|
|
// REQUIRES: executable_test
|
|
|
|
import StdlibUnittest
|
|
import class_change_lazy_to_computed
|
|
|
|
|
|
var ChangeLazyToComputedTest = TestSuite("ChangeLazyToComputed")
|
|
|
|
ChangeLazyToComputedTest.test("ChangeLazyToComputed") {
|
|
do {
|
|
let t = ChangeLazyToComputed(celsius: 0)
|
|
expectEqual(t.fahrenheit, 32)
|
|
}
|
|
}
|
|
|
|
runAllTests()
|