Files
swift-mirror/validation-test/stdlib/Slice/Slice_Of_DefaultedRandomAccessCollection_WithPrefixAndSuffix.swift.gyb
Dmitri Hrybenko ff1680c7ea stdlib: expand the test boilerplate from Slice.swift.gyb
This test organization allows running more tests in parallel.

Part of rdar://22297353

Swift SVN r31287
2015-08-18 03:54:13 +00:00

32 lines
1.3 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_DefaultedRandomAccessCollection_WithPrefixAndSuffix.swift -D test_path="%S"
// RUN: %S/../../../utils/line-directive %t/Slice_Of_DefaultedRandomAccessCollection_WithPrefixAndSuffix.swift -- %target-build-swift %t/Slice_Of_DefaultedRandomAccessCollection_WithPrefixAndSuffix.swift -o %t/Slice_Of_DefaultedRandomAccessCollection_WithPrefixAndSuffix.swift.a.out
// RUN: %S/../../../utils/line-directive %t/Slice_Of_DefaultedRandomAccessCollection_WithPrefixAndSuffix.swift -- %target-run %t/Slice_Of_DefaultedRandomAccessCollection_WithPrefixAndSuffix.swift.a.out
// REQUIRES: executable_test
// FIXME: the test is too slow when the standard library is not optimized.
// REQUIRES: optimized_stdlib
import StdlibUnittest
var SliceTests = TestSuite("CollectionType")
% import gyb
% TSliceTest = gyb.parseTemplate("{}/Inputs/slice.gyb".format(test_path))
% SliceTest = gyb.executeTemplate(
% TSliceTest,
% traversal='RandomAccess',
% base_kind='Defaulted',
% mutable=False,
% WrapperType='Slice',
% name='WithPrefixAndSuffix',
% prefix=[ -9999, -9998, -9997, -9996, -9995 ],
% suffix=[ -9994, -9993, -9992 ])
${SliceTest}
runAllTests()