Files
swift-mirror/validation-test/stdlib/HashingICU.swift
Arnold Schwaighofer ee0a1d1a58 More executable tests in validation-test
Swift SVN r29279
2015-06-03 23:28:45 +00:00

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)