//// 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_DefaultedBidirectionalCollection_WithSuffix.swift -D test_path="%S" // RUN: %S/../../../utils/line-directive %t/Slice_Of_DefaultedBidirectionalCollection_WithSuffix.swift -- %target-build-swift %t/Slice_Of_DefaultedBidirectionalCollection_WithSuffix.swift -o %t/Slice_Of_DefaultedBidirectionalCollection_WithSuffix.swift.a.out // RUN: %S/../../../utils/line-directive %t/Slice_Of_DefaultedBidirectionalCollection_WithSuffix.swift -- %target-run %t/Slice_Of_DefaultedBidirectionalCollection_WithSuffix.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='Bidirectional', % base_kind='Defaulted', % mutable=False, % Wrapper='Slice', % name='WithSuffix', % prefix=[], % suffix=[ -9999, -9998, -9997]) ${SliceTest} runAllTests()