Lance Parker
6ff5310260
Moved helpers to a new file
2017-09-18 11:51:59 -07:00
Lance Parker
b484f59202
Iterator tests
2017-09-18 11:51:59 -07:00
Lance Parker
b67f38d940
Killed all the warnings in the Array tests
2017-09-18 11:51:59 -07:00
Lance Parker
36cfba3bfc
Array casting tests
2017-09-18 11:51:59 -07:00
Lance Parker
d7a17bcd1f
More Array bridging tests
2017-09-18 11:51:59 -07:00
Lance Parker
87e6485a15
Add bridging tests like Dictionary's
2017-09-18 11:51:46 -07:00
Robert Widmann
d0bc2a8611
Custom message for recursive Strideable witness
...
Strideable declares a default witness for Equatable and Comparable
extension Strideable {
@_inlineable
public static func < (x: Self, y: Self) -> Bool {
return x.distance(to: y) > 0
}
@_inlineable
public static func == (x: Self, y: Self) -> Bool {
return x.distance(to: y) == 0
}
}
This witness is implemented recursively because the expectation
is that Stride != Self. However, it is possible to implement
SignedNumeric and Strideable together and inherit this conformance
which will cause undefined behavior - usually a crash.
Provide an overload when Stride == Self and crash with custom message
that mentions that Equatable and Comparable have to be implemented
in this case.
- It's better than nothing.
2017-09-15 12:31:09 -04:00
Mohammed M. Ennabah
81ab8a302d
changed diagnostics argument name to argument label SR-5857 ( #11894 )
...
* changed diagnostics argument name to argument label SR-5857
2017-09-13 19:07:19 -07:00
Lance Parker
2ae14bbf24
Disable failing test on Linux
2017-09-07 11:09:38 -07:00
Lance Parker
df29438fb2
Merge pull request #11775 from lancep/SetSetAlgebraTests
...
[stdlib] Add tests for all of the SetAlgebra methods on Set
2017-09-07 10:10:57 -07:00
Lance Parker
7a37e9ee1d
radar in comment
2017-09-06 22:22:04 -07:00
Lance Parker
2ba35ca2b1
Added test that ensures Set conforms to SetAlgebra
2017-09-06 14:11:55 -07:00
Lance Parker
e06a66587f
Use .skip instead of commenting out the test
2017-09-06 10:48:49 -07:00
Lance Parker
787268c412
Disable test that's sometimes failing on Linux
2017-09-05 16:55:36 -07:00
Lance Parker
5644468a50
Add tests for all of the SetAlgebra methods on Set
2017-09-05 13:14:58 -07:00
swift-ci
92b13b809e
Merge pull request #11664 from lancep/ 🐮 Tests
2017-08-31 10:11:18 -07:00
Lance Parker
c049b14bfa
Removed useless parts of Array tests
2017-08-30 22:32:07 -06:00
Maxim Moiseev
3a0dd61bc0
Merge pull request #11683 from lancep/optionSetTests
...
[stdlib] Add OptionSet tests
2017-08-30 10:23:44 -07:00
Lance Parker
27bd01a32d
Fix bad find and replace
2017-08-29 17:29:50 -07:00
Lance Parker
77b0f39cc2
Max's feedback
2017-08-29 17:23:11 -07:00
Lance Parker
b8713a35d3
Max's review feedback
2017-08-29 16:11:12 -07:00
Lance Parker
ba3cbf9549
Add OptionSet tests
2017-08-29 15:25:13 -07:00
Kuba (Brecka) Mracek
d03a575279
Unify the capitalization across all user-visible error messages ( #11599 )
...
* Unify the capitalization across all user-visible error messages (fatal errors, assertion failures, precondition failures) produced by the runtime, standard library and the compiler.
* Update some more tests to the new expectations.
2017-08-29 12:16:04 -07:00
Lance Parker
19d43c24d1
Some more test cleanup
2017-08-28 22:49:19 -07:00
Lance Parker
3f60f1c80f
Remove commented out code
2017-08-28 22:44:41 -07:00
Lance Parker
c623881c78
Fix Linux tests
2017-08-28 21:24:11 -07:00
Lance Parker
0ebb2fecca
Add COW test for String
2017-08-28 17:20:19 -07:00
Lance Parker
3c8f5fa04a
Add COW test for Array
2017-08-28 17:20:18 -07:00
Lance Parker
f42bd011cb
Disable ArraySlice.append index test
2017-08-25 10:18:04 -07:00
Lance Parker
f7437689a5
Fix comment from copy/paste
2017-08-23 12:03:40 -07:00
Lance Parker
5847455307
Make index tests more data based
2017-08-23 12:00:17 -07:00
Lance Parker
f17a53468f
Remove redundant test
2017-08-21 16:14:58 -07:00
Lance Parker
726fba69ec
Remove xfail for ArraySlice/append
2017-08-21 16:07:49 -07:00
Lance Parker
c49b8f98c5
Add index unit tests for Arrays
2017-08-21 13:38:46 -07:00
Max Moiseev
2686865c86
[test] XFAIL NewArray test cases for iOS and tvOS devices
...
<rdar://problem/33926468>
2017-08-18 16:25:38 -07:00
swift-ci
94dccf1fea
Merge pull request #11087 from CodaFi/a-farewell-to-grant-money
2017-08-18 02:49:50 -07:00
Arnold Schwaighofer
6a1dbef72b
Revert "Disable one more test that is failing on bots on armv7"
...
This reverts commit 6c62307281 .
The cause of the failure in LLVM should be fixed.
rdar://33761334
2017-08-16 08:36:22 -07:00
Joe Shajrawi
66d0df6bae
Revert "Temporary disable failing armv7 tests"
...
This reverts commit 78e5e25215 .
2017-08-15 13:43:57 -07:00
Michael Ilseman
70b836baab
Merge pull request #10971 from an0/master
...
Fix String.UTF8View.Index's conversion init
2017-08-14 14:59:32 -07:00
Robert Widmann
e4bfd600cc
Remove SwiftExperimental
2017-08-11 14:21:06 -07:00
Arnold Schwaighofer
6c62307281
Disable one more test that is failing on bots on armv7
...
rdar://33761334
2017-08-11 08:52:07 -07:00
Michael Ilseman
2415a4df52
[stdlib] Drop Unicode 8 tries in stdlib (entirely)
...
This drops the last vestage of Unicode 8 tries from the standard
library. Switches everything over to use ICU.
2017-08-09 19:17:56 -07:00
Joe Shajrawi
78e5e25215
Temporary disable failing armv7 tests
2017-08-08 15:22:14 -07:00
Maxim Moiseev
3f993ef580
Merge pull request #11203 from moiseev/integers-revised
...
[stdlib] Implement updates to SE-0104
2017-07-28 16:15:57 -07:00
Mishal Shah
64a77ca716
Update master to build with Xcode 9 beta 4, macOS 10.13, iOS 11, tvOS 11, and watchOS 4 SDKs.
2017-07-28 11:17:59 -07:00
Nate Cook
a7ce287a53
Merge branch 'master' into integers-revised
2017-07-28 12:23:48 -05:00
Michael Ilseman
befe6933a9
Merge pull request #11212 from milseman/massive_subview_controller
...
[stdlib] Give Substring its own views
2017-07-27 20:36:52 -07:00
Maxim Moiseev
7b9d29e567
Merge pull request #10778 from moiseev/test-speed
...
[tests] More granular tests for faster builds
2017-07-27 13:51:55 -07:00
Max Moiseev
5da3e1dab3
[test] Fix validation tests
2017-07-26 16:49:14 -07:00
Dave Abrahams
41c53ae729
[stdlib] Give Substring its own views
...
This necessary for ensuring the property that String doesn't keep
inaccessible memory alive. For example, before this change,
String(s.dropFirst().unicodeScalars)
would compile and produce a String that owned inaccessible memory.
Now it no longer compiles.
String's view's SubSequences are the same as the Substring's
view. E.g. String.UnicodeScalarView.SubSequence is
Substring.UnicodeScalarView.
New compatibility inits added, to work around the fact that many
previously failable initializers are now non-failable.
2017-07-26 15:59:51 -07:00