mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
41 lines
1.5 KiB
Swift
41 lines
1.5 KiB
Swift
|
|
//// Automatically Generated From validation-test/stdlib/Inputs/GenerateSliceTests.py
|
|
//////// Do Not Edit Directly!
|
|
// -*- swift -*-
|
|
// RUN: rm -rf %t ; mkdir -p %t
|
|
// RUN: %S/../../../utils/gyb %s -o %t/Slice_Of_MinimalRandomAccessMutableCollection_WithPrefix.swift -D test_path="%S"
|
|
// RUN: %S/../../../utils/line-directive %t/Slice_Of_MinimalRandomAccessMutableCollection_WithPrefix.swift -- %target-build-swift %t/Slice_Of_MinimalRandomAccessMutableCollection_WithPrefix.swift -o %t/Slice_Of_MinimalRandomAccessMutableCollection_WithPrefix.swift.a.out
|
|
// RUN: %S/../../../utils/line-directive %t/Slice_Of_MinimalRandomAccessMutableCollection_WithPrefix.swift -- %target-run %t/Slice_Of_MinimalRandomAccessMutableCollection_WithPrefix.swift.a.out
|
|
// REQUIRES: executable_test
|
|
|
|
// FIXME: the test is too slow when the standard library is not optimized.
|
|
// REQUIRES: optimized_stdlib
|
|
|
|
import StdlibUnittest
|
|
import StdlibCollectionUnittest
|
|
|
|
// Also import modules which are used by StdlibUnittest internally. This
|
|
// workaround is needed to link all required libraries in case we compile
|
|
// StdlibUnittest with -sil-serialize-all.
|
|
import SwiftPrivate
|
|
#if _runtime(_ObjC)
|
|
import ObjectiveC
|
|
#endif
|
|
|
|
var SliceTests = TestSuite("Collection")
|
|
|
|
% import gyb
|
|
% TSliceTest = gyb.parse_template("{}/Inputs/slice.gyb".format(test_path))
|
|
% SliceTest = gyb.execute_template(
|
|
% TSliceTest,
|
|
% traversal='RandomAccess',
|
|
% base_kind='Minimal',
|
|
% mutable=True,
|
|
% Wrapper='Slice',
|
|
% name='WithPrefix',
|
|
% prefix=[-9999, -9998, -9997],
|
|
% suffix=[])
|
|
${SliceTest}
|
|
|
|
runAllTests()
|