mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
21 lines
609 B
Swift
21 lines
609 B
Swift
// RUN: %target-run-simple-swift | FileCheck %s
|
|
// REQUIRES: executable_test
|
|
|
|
// REQUIRES: OS=linux-gnu
|
|
|
|
// Validation of hashes produced by ICU-based methods used on linux. Doesn't
|
|
// use StdlibUnittest because that doesn't work on linux yet. May go away in
|
|
// favour of the more comprehensive tests that already exist once it does.
|
|
|
|
// ASCII strings
|
|
// CHECK: 5308980208032766932
|
|
print("boom".hashValue)
|
|
// CHECK-NEXT: 6894346571320922064
|
|
print("zoom".hashValue)
|
|
|
|
// Unicode strings
|
|
// CHECK-NEXT: 3514641426931780352
|
|
print("ZOO≪M".hashValue)
|
|
// CHECK-NEXT: 7349636929305805742
|
|
print("moo≪m".hashValue)
|