Commit Graph

1996 Commits

Author SHA1 Message Date
Dmitri Gribenko
b8ba955198 stdlib: add a prototype implementation of a persistent vector 2016-06-30 00:49:02 -07:00
Dmitri Gribenko
8507deccb7 stdlib: simplify test organization in FloatingPointConversion.swift.gyb 2016-06-29 23:21:22 -07:00
Dmitri Gribenko
3658d14389 stdlib: simplify tests for conversions of special floating point values 2016-06-29 22:41:09 -07:00
swift-ci
8fe85c3368 Merge pull request #2977 from ultramiraculous/failable-float-float 2016-06-29 20:30:11 -07:00
Chris Williams
025a69988d Float->Float Failable Initializer Tests 2016-06-29 16:23:32 -07:00
Austin Zheng
aec2d8ea0b [stdlib] Add tests for UnsafeMutableBufferPointer subscript setter 2016-06-29 14:59:16 -07:00
Austin Zheng
26ade958c3 [stdlib] Fix UnsafeBufferPointer range subscript getter tests (#3233)
All four of the Unsafe*BufferPointer range subscript getter tests (one for each range) were using the same test name string. This caused only one of the four tests to actually be registered to the test suite. This change fixes that issue, and adds a couple more tests for better coverage.
2016-06-29 13:56:57 -07:00
Michael Gottesman
8d00a6cb59 Merge remote-tracking branch 'origin/master' into master-next
Conflicts:
	stdlib/public/SDK/GameplayKit/CMakeLists.txt
	test/DebugInfo/bound-namealiastype.swift
	test/DebugInfo/structs.swift
	test/IRGen/c_globals.swift
	test/SourceKit/DocSupport/doc_clang_module.swift
	test/SourceKit/Indexing/index_with_clang_module.swift
	utils/update-checkout
2016-06-25 01:13:50 -07:00
Austin Zheng
d8b5a2a4fd [stdlib] Improving Dictionary/Set tests to use fewer unsafeBitCasts
NFC
2016-06-24 10:12:16 -07:00
Jordan Rose
47a247c41b [SDK] Backwards-deployment support for Core Data's generics. (#3154)
rdar://problem/26825103
2016-06-23 12:47:22 -07:00
Dave Abrahams
123fbaa1f8 warning suppression 2016-06-22 16:18:56 -07:00
swift-ci
2031bdc185 Merge pull request #2963 from ultramiraculous/failable-int-int 2016-06-21 23:49:11 -07:00
Chris Williams
08d111d10e Int->Int Failable Initializer Tests 2016-06-21 21:11:05 -07:00
Alsey Coleman Miller
9230864ac0 Updated Unit Test for CUUID 2016-06-21 19:02:55 -05:00
Alsey Coleman Miller
ff33f3bb74 Added CUUID to Glibc
Necessary for SR-1756 and SE-0069
2016-06-21 13:48:15 -05:00
Austin Zheng
dfcc13dc69 [stdlib] Bounds checks and tests for Unsafe*BufferPointer
Changes:
- Added bounds checks to Unsafe*BufferPointer's subscript getter and setter
- Added tests for Unsafe*BufferPointer's subscript getter for all four range types
2016-06-20 21:41:20 -07:00
Max Moiseev
b43341eb81 [stdlib] fixing the NewArray validation test in optimized mode 2016-06-20 15:58:45 -07:00
Rintaro Ishizaki
38b31c6419 [validation-test] Remove unused SwiftPrivate import 2016-06-20 13:09:10 +09:00
Rintaro Ishizaki
5c991e7e35 [validation-test] Remove -sil-serialize-all workaround from Collection and Slice tests
This workaround is not required since 49c54870c1
2016-06-20 11:32:46 +09:00
Austin Zheng
9138b73097 [stdlib] Addressing Dmitri Gribenko's feedback re #2993
Changes:
- Moved only-used-once helper methods into call sites
- Parameterized tests that might expect a crash
- Fixed some comments and formatting; renamed some test helper APIs
2016-06-17 00:26:27 -07:00
Austin Zheng
6231cca609 [stdlib] Implementing O(1) methods on CountableClosedRange (#2993)
* [stdlib] Implementing O(1) methods on `CountableClosedRange`

Changes:
- Implemented O(1) `index(_:offsetBy:)` and `distance(from:to:)` methods on `CountableClosedRange`
- Fixed some unit tests
- Added many more unit tests for Countable*Range index APIs

* Clarify test intent
2016-06-16 21:08:13 -07:00
Austin Zheng
51f19eafdf [stdlib] Adding new indices model tests (#2991)
* [stdlib] Adding new tests for collection indices

Changes:
- Added tests for 'index(next:)'
- Added tests for all 'formIndex' API variants
- Modified existing tests to better test bidirectional collections

* Fixes reflecting review feedback
2016-06-16 10:53:47 -07:00
Austin Zheng
4872e546b0 [stdlib] Adding tests for removeSubrange overloads for range types 2016-06-14 23:57:49 -07:00
Dmitri Gribenko
efc351f69d Merge pull request #3011 from rintaro/tests-target-simple-run-swiftgyb
[test] Add %target-run-simple-swiftgyb substitution
2016-06-14 22:43:48 -07:00
Dmitri Gribenko
807a251d2d Merge pull request #3013 from rintaro/split_file-refactor
[utils] Refactor utils/split_file.py
2016-06-14 21:28:00 -07:00
rintaro ishizaki
4b51d85abb [test] Add %target-run-simple-swiftgyb
* Utilize %target-run-simple-swiftgyb where possible
2016-06-15 11:49:44 +09:00
rintaro ishizaki
6e4792cb5b [test] Adjust validation-test/stdlib/{Collection, Slice}
* utils/split_file.py compatible Inputs/Template.swift.gyb
* Result scripts can be ran by %target-run-simple-swift, not GYB
* Renamed stdlib/Slice/*.swift.gyb to stdlib/Slice/*.swift
2016-06-15 11:49:43 +09:00
Mishal Shah
87b7bcfd3e Update master to build with Xcode 8 beta 1, OS X 10.12, iOS 10, tvOS 10, and watchOS 3 SDKs. 2016-06-14 14:53:55 -07:00
rintaro ishizaki
2addf475b5 [test] Add instruction for generating validation-test/stdlib/{Collection,Slice} tests
Using utils/gyb and utils/split_file.py
2016-06-14 19:50:39 +09:00
Rintaro Ishizaki
81aa5dbbd2 [tests] Fix missing %utils and %gyb utilization. 2016-06-11 22:59:39 +09:00
Rintaro Ishizaki
1bdce7ced6 [lit] Add substitutions: %utils and %line-directive
%utils => ${SWIFT_SOURCE_DIR}/utils
%line-directive => ${SWIFT_SOURCE_DIR}/utils/line-directive
2016-06-11 02:41:15 +09:00
Dmitri Gribenko
8fd96943f9 Merge pull request #2949 from austinzheng/az-st3
Adding tests for String's removeSubrange overloads
2016-06-09 07:38:06 -07:00
Brian Gesiak
fd136cc28c Merge pull request #2788 from briancroom/pr-2551
SR-1417: Add non-optional overloads of XCTAssertEqual and XCTAssertNotEqual
2016-06-08 14:41:11 -04:00
Austin Zheng
240460ba38 Adding tests for String's removeSubrange overloads 2016-06-08 09:35:14 -07:00
Austin Zheng
30ba084a70 Adding tests for String's replaceSubrange overloads for closed ranges 2016-06-08 01:01:00 -07:00
Dmitri Gribenko
09c0b60e12 Merge pull request #2929 from ultramiraculous/slice-base
SE-0093 - Add public base property to slices
2016-06-07 20:28:05 -07:00
Austin Zheng
f92be08556 Adding tests for String's replaceSubrange overloads for non-closed ranges 2016-06-07 17:01:39 -07:00
Chris Williams
d08cbd6a60 Test for Slice.base 2016-06-07 16:04:27 -07:00
Austin Zheng
fa6c028edf Adding tests for replaceSubrange overloads for range types (#2774) 2016-06-07 14:21:30 -07:00
Trent Nadeau
b9db36cda5 Removed last uses of @warn_unused_result 2016-06-06 19:12:51 -04:00
Brian Croom
1b7a447955 Test the failure messages for optional and non-optional XCTAssertEqual variants 2016-05-31 08:20:56 -04:00
Nicola Salmoria
956b6b1cad SR-1417: Add non-optional overloads of XCTAssertEqual and XCTAssertNotEqual
Previously, the only version of the functions that accepted values was the one that implicitly wraps them into Optionals. This generated a confusing error message when the assert failed. Having a separate overload that accepts non-optional types ensures that the correct description is printed when the assert fails.
2016-05-31 08:16:02 -04:00
Dmitri Gribenko
87115f8729 Merge pull request #2717 from kballard/sequence-first-state-next
[Stdlib] Implement sequence(first:next:) and sequence(state:next:)
2016-05-27 18:32:19 -07:00
Kevin Ballard
d1d0e05abc [Stdlib] Implement sequence(first:next:) and sequence(state:next:)
Fixes [SR-1622](https://bugs.swift.org/browse/SR-1622).
2016-05-27 13:03:48 -07:00
Nate Cook
089ea92fdc [stdlib] Fix warnings in Collections validation test 2016-05-26 10:39:34 -05:00
Nate Cook
95de0e41cb [stdlib] Fix _writeBackMutableSlice error messages 2016-05-26 10:39:24 -05:00
Dmitri Gribenko
2daa1400cf Merge pull request #2541 from linux-on-ibm-z/master-s390x
Support Linux on z as a Swift platform
2016-05-25 16:06:10 -07:00
Maxim Moiseev
38f7ec2a32 [stdlib] Fix the String.decodeCString for UTF16 and UTF32 (#2681)
[stdlib] Fix the `String.decodeCString` for UTF16 and UTF32

Resolves [SR-1578](https://bugs.swift.org/browse/SR-1578]
Essentially the problem was that `strlen` is not the right way of
obtaining a length of anything but null-terminated UTF-8 sequence of
characters. Other encodings require alternative mechanisms.
2016-05-25 15:51:10 -07:00
Dmitri Gribenko
855700dd22 Merge pull request #2689 from rintaro/parser-attr-requires-foundation-inactive
[Parser] Don't report AttrsRequiringFoundation in inactive config block
2016-05-25 13:39:42 -07:00
Rintaro Ishizaki
4d686a424f [Parser] Don't report AttrsRequiringFoundation in inactive config block
Fixes rdar://problem/23487944
2016-05-26 02:43:21 +09:00