Commit Graph

1999 Commits

Author SHA1 Message Date
Lance Parker
bd055412d2 Make the reserve capacity test use GT/GE rather than testing for a speicific value 2017-09-20 11:23:42 -07:00
Lance Parker
a386f747ed Removed more occurrences of the incorrect comment 2017-09-19 16:26:36 -07:00
Lance Parker
135b9b0a33 Max's feedback 2017-09-19 16:17:05 -07:00
Lance Parker
acf94f94ec Add -Onone to all the _Debug tests 2017-09-18 12:56:52 -07:00
Lance Parker
f000afea11 Removed debug parameters from build line 2017-09-18 11:55:30 -07:00
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