mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Now that it disables access control, this lit definition applies to many more tests, where we used to use %target-run-stdlib-swift before access control came online. Also, drop -Xfrontend -disable-access-control from a bunch of tests that don't need it. Swift SVN r22634
18 lines
301 B
Swift
18 lines
301 B
Swift
// RUN: %target-run-simple-swift | FileCheck %s
|
|
|
|
import StdlibUnittest
|
|
|
|
//
|
|
// Test OS version parsing
|
|
//
|
|
|
|
// CHECK: (10, 0, 0)
|
|
println(_parseDottedVersionTriple("10"))
|
|
|
|
// CHECK: (10, 9, 0)
|
|
println(_parseDottedVersionTriple("10.9"))
|
|
|
|
// CHECK: (10, 9, 3)
|
|
println(_parseDottedVersionTriple("10.9.3"))
|
|
|