mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
20 lines
326 B
Swift
20 lines
326 B
Swift
// RUN: %target-run-simple-swift | %FileCheck %s
|
|
// REQUIRES: executable_test
|
|
|
|
import StdlibUnittest
|
|
|
|
|
|
//
|
|
// Test OS version parsing
|
|
//
|
|
|
|
// CHECK: (10, 0, 0)
|
|
print(_parseDottedVersionTriple("10"))
|
|
|
|
// CHECK: (10, 9, 0)
|
|
print(_parseDottedVersionTriple("10.9"))
|
|
|
|
// CHECK: (10, 9, 3)
|
|
print(_parseDottedVersionTriple("10.9.3"))
|
|
|