"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "validation-test/stdlib/StringNormalization.swift" between
swift-swift-5.8-RELEASE.tar.gz and swift-swift-5.8.1-RELEASE.tar.gz

About: Swift is a general-purpose programming language built using a modern approach to safety, performance, and software design patterns (developed by Apple).

StringNormalization.swift  (swift-swift-5.8-RELEASE):StringNormalization.swift  (swift-swift-5.8.1-RELEASE)
skipping to change at line 21 skipping to change at line 21
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// rdar://85480347 // rdar://85480347
// REQUIRES: rdar85480347 // REQUIRES: rdar85480347
// RUN: %empty-directory(%t) // RUN: %empty-directory(%t)
// RUN: %target-clang -fobjc-arc %S/Inputs/NSSlowString/NSSlowString.m -c -o %t/ NSSlowString.o // RUN: %target-clang -fobjc-arc %S/Inputs/NSSlowString/NSSlowString.m -c -o %t/ NSSlowString.o
// RUN: %target-build-swift -I %S/Inputs/NSSlowString/ %t/NSSlowString.o %s -o % t/a.out // RUN: %target-build-swift -I %S/Inputs/NSSlowString/ %t/NSSlowString.o %s -o % t/a.out
// RUN: %target-codesign %t/a.out // RUN: %target-codesign %t/a.out
// RUN: %target-run %t/a.out %S/Inputs/NormalizationTest.txt %S/Inputs/Normaliza tionTest14.txt // RUN: %target-run %t/a.out %S/Inputs/NormalizationTest.txt %S/Inputs/Normaliza tionTest15.txt
// REQUIRES: executable_test // REQUIRES: executable_test
// REQUIRES: objc_interop // REQUIRES: objc_interop
// REQUIRES: optimized_stdlib // REQUIRES: optimized_stdlib
import Swift import Swift
import StdlibUnittest import StdlibUnittest
import StdlibUnicodeUnittest import StdlibUnicodeUnittest
#if _runtime(_ObjC) #if _runtime(_ObjC)
import NSSlowString import NSSlowString
skipping to change at line 100 skipping to change at line 100
expected: test.NFKC, expected: test.NFKC,
others: [ others: [
"NFKC": test.NFKC, "NFKC": test.NFKC,
"NFKD": test.NFKD "NFKD": test.NFKD
], ],
stackTrace: SourceLocStack(test.loc)) stackTrace: SourceLocStack(test.loc))
} }
} }
//==------------------------------------------------------------------------==// //==------------------------------------------------------------------------==//
// Newer stdlib with native normalization and supporting Unicode 14 // Newer stdlib with native normalization and supporting Unicode 15
//==------------------------------------------------------------------------==// //==------------------------------------------------------------------------==//
if #available(SwiftStdlib 5.6, *) { if #available(SwiftStdlib 5.9, *) {
tests.test("StringNormalization14/ConvertToNFC") tests.test("StringNormalization15/ConvertToNFC")
.code { .code {
for test in normalizationTests14 { for test in normalizationTests14 {
expectEqualIterators( expectEqualIterators(
label: "NFC", label: "NFC",
expected: test.NFC, expected: test.NFC,
others: [ others: [
"source": test.source, "source": test.source,
"NFC": test.NFC, "NFC": test.NFC,
"NFD": test.NFD "NFD": test.NFD
], ],
stackTrace: SourceLocStack(test.loc) stackTrace: SourceLocStack(test.loc)
) )
} }
} }
tests.test("StringNormalization14/ConvertNFK*ToNFKC") tests.test("StringNormalization15/ConvertNFK*ToNFKC")
.code { .code {
for test in normalizationTests14 { for test in normalizationTests14 {
expectEqualIterators( expectEqualIterators(
label: "NFKC", label: "NFKC",
expected: test.NFKC, expected: test.NFKC,
others: [ others: [
"NFKC": test.NFKC, "NFKC": test.NFKC,
"NFKD": test.NFKD "NFKD": test.NFKD
], ],
stackTrace: SourceLocStack(test.loc) stackTrace: SourceLocStack(test.loc)
 End of changes. 4 change blocks. 
5 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)