Commit Graph

2015 Commits

Author SHA1 Message Date
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
Dave Abrahams
1f1f35a57b [stdlib] Squash some warnings in a test 2017-07-26 15:59:12 -07:00
Max Moiseev
1c3e597928 [stdlib] Get rid of ArithmeticOverflow type 2017-07-26 11:09:36 -07:00
Maxim Moiseev
a5ff35cd41 [stdlib] extendingOrTruncating: => truncatingIfNeeded: 2017-07-26 11:09:36 -07:00
swift-ci
4d5dfdd42c Merge pull request #10966 from rintaro/stdlib-hashedcollection-switchcase 2017-07-24 00:51:08 -07:00
Michael Gottesman
ec5a92fd04 Disable some tests this time for real. 2017-07-21 13:14:18 -07:00
Michael Gottesman
ab6a4f5249 Disable some failing tests.
rdar://33358110
2017-07-19 16:25:39 -07:00
Dave Abrahams
e6519fbd2b [stdlib] Make String.UTF8View bidirectional
This is a step along the way toward handling backward-compatiblity of UTF8View
slicing and preventing inadvertent creation of String instances that keep
inaccessible memory alive.
2017-07-17 13:53:45 -07:00
Ling Wang
7946bb3872 Add tests for utf8-to-utf8 index conversion 2017-07-15 12:33:00 -05:00
Rintaro Ishizaki
d2eab3c342 [stdlib] Use #if guarded switch case
_Cocoa{Set,Dictionary}{Buffer,Index,Iterator} can be completely
eliminated from non-ObjC runtime environments.
2017-07-14 18:14:34 +09:00
Brian Croom
f788a309ff Stop swallowing test interruption exceptions thrown during XCTAssert evaluation.
Rethrow any test interruption exceptions that get caught, mirroring the
behavior of the Objective-C XCTAssert macros.

<rdar://problem/33255447>
2017-07-12 12:28:34 -07:00
Dave Abrahams
9159239995 Un-revert "[stdlib] String index interchange, etc." (#10812)
I failed to merge the upstream changes to swift-corelibs-foundation at the same
time as I merged that #9806, and it broke on linux. Going to get it right this
time.
2017-07-07 12:13:25 -07:00
Xi Ge
d9fb110674 Revert "[stdlib] String index interchange, etc." (#10812)
rdar://33186295
2017-07-07 12:03:16 -07:00
Dave Abrahams
a2db6059b4 [stdlib] Extend String index conversion tests for interchange
test the new APIs as well as the legacy failing conversions.
2017-07-07 06:15:27 -07:00
Dave Abrahams
8485de6307 [stdlib] Drop a couple bogus duplicate tests
Only the last of each set of dups gets run anyway.  See
https://bugs.swift.org/browse/SR-5362
2017-07-07 06:15:27 -07:00
Dave Abrahams
73f116e9de [stdlib] Fix a test: String.UTF8View has its own Iterator now 2017-07-07 06:15:25 -07:00
Dave Abrahams
b1d2f4c68e [stdlib] String index interchange, part III (UTF8) 2017-07-07 06:15:24 -07:00
Dave Abrahams
2e0bb2f533 [stdlib] String index interchange, part II (UTF16) 2017-07-07 06:15:23 -07:00
Dave Abrahams
e523c80339 [stdlib] Index interchange, part I 2017-07-07 00:59:04 -07:00
Andrew Trick
609cd23131 Foundation.Data unit tests: enable standard Collection semantics tests. 2017-07-06 10:01:03 -07:00
Max Moiseev
0913206f29 [tests] Generate LazyMap tests from the template 2017-07-05 16:53:58 -07:00
Max Moiseev
02eca4abd7 [tests] Add template for LazyMap tests 2017-07-05 16:53:58 -07:00
Max Moiseev
e2c22b2425 [tests] Re-generate files from the template 2017-07-05 15:51:08 -07:00
Max Moiseev
7730c60705 [tests] Split collection tests further for more even load on executors 2017-07-05 15:51:08 -07:00
Arnold Schwaighofer
1214f04757 Fix Lazy.swift.gyb in optimize test mode
EmptyCollection was changed a while ago to use _debugPrecondition checks in the
accesses being tested that fail in optimize mode. Change the test to only expect
a failure in debug mode.

rdar://31897334
2017-06-30 08:48:20 -07:00
Max Moiseev
46af654271 [overlay] Add ModelIO overlay 2017-06-26 10:56:13 -07:00
Philippe Hausler
c358afe655 [Foundation] Adjust Double and Float bridges to be more lenient 2017-06-16 15:18:27 -07:00
Jordan Rose
7295423339 Revert "Re-enable Lazy validation test." (#10330)
The test is still failing on some of the Apple-internal builders. Tracked (still) by rdar://problem/31897334.
2017-06-16 13:46:49 -07:00
Mark Lacey
af49a77b28 Re-enable Lazy validation test.
Works for me locally.

Resolves rdar://problem/31897334.
2017-06-16 08:38:29 -07:00
Mishal Shah
c5ff1f2cac Update master to build with Xcode 9 beta 1, OS X 10.13, iOS 11, tvOS 11, and watchOS 4 SDKs. 2017-06-14 16:20:35 -07:00