practicalswift
c262b42ae0
[gardening] Fix recently introduced whitespace typos. ( #2443 )
2016-05-06 23:49:39 -07:00
practicalswift
68b148cfb1
[gardening] Fix recently introduced typos.
2016-05-06 20:31:38 +02:00
Dave Abrahams
93dfc16626
[stdlib] More reliably avoid running duplicate tests
...
Removing the “checksAdded” parameter from collection unit tests and
simply sharing a global variable is a better way to go. We don't
use threads at that level, so there's no thread safety issue, and we
already committed to globals when we introduced the logging wrappers.
2016-05-02 15:30:29 -07:00
Dave Abrahams
446657459f
[stdlib] index(...) tests => StdlibCollectionUnittest
...
Moving the ones that can be applied generally into the unit testing
library.
2016-05-01 14:00:24 -07:00
Max Moiseev
d00dddbdab
[stdlib][swift-3-indexing-model] fixing the ReversedCollection/lazy test
2016-04-29 13:46:50 -07:00
Austin Zheng
e034946b45
Fixing index(where:) API test
...
Changes:
- Fixed a bug in the collection unit test exercising the index(where:) API
- Reenabled relevant LazyMapCollection tests
2016-04-28 20:04:39 -07:00
Dmitri Gribenko
50a3662cc3
StdlibCollectionUnittest: remove a protocol that had only one user
2016-04-28 14:57:52 -07:00
Dave Abrahams
9bee5d182f
[stdlib] location/formLocation => index/formIndex
2016-04-26 17:46:16 -07:00
Dmitri Gribenko
5ec4252a56
stdlib: fix warnings and indentation
2016-04-26 11:15:35 -07:00
Dave Abrahams
73647eff56
[stdlib] Start gybbing CollectionUnitTest.swift
2016-04-22 17:59:58 -07:00
Dave Abrahams
17cb21ea7e
[stdlib] Move some test resources to StdlibCollectionUnittest
2016-04-22 17:59:58 -07:00
Dave Abrahams
66472fadcd
[stdlib] Reindent / fix 80-column violations
2016-04-22 16:09:10 -07:00
Max Moiseev
e1104af665
[stdlib][swift-3-indexing-model] rephrasing doc comments
2016-04-22 13:09:10 -07:00
Dmitri Gribenko
54d81b6633
Rewrite tests for _copyToNativeArrayBuffer() default implementations to use StdlibCollectionUnittest infrastructure
2016-04-21 18:31:31 -07:00
Dave Abrahams
47a870cc50
[stdlib] Use location/formLocation for all index movement
2016-04-21 17:13:41 -07:00
Dave Abrahams
adb8ade39a
[stdlib] Fix some test names.
...
The names of the corresponding methods changed a while ago.
2016-04-21 13:09:41 -07:00
Dmitri Gribenko
fc8d62dfbb
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-04-18 14:40:06 -07:00
Dmitri Gribenko
3e23907f13
stdlib: fix warnings about deprecated @noescape and @autoclosure syntax
2016-04-18 14:07:23 -07:00
practicalswift
db452dcbe9
[gardening] "[ a, b ]" → "[a, b]"
2016-04-17 21:26:08 +02:00
Dmitri Gribenko
2b35fea059
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-04-16 00:30:12 -07:00
Chris Lattner
4fd8418ba7
move the stdlib to put noescape and autoclosure on the type, instead of
...
the parameter. Progress towards SE-0049.
2016-04-14 23:13:43 -07:00
Dmitri Gribenko
cfea1a3f58
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-04-14 17:00:46 -07:00
Dmitri Gribenko
3e708a9328
Merge commit '8e292daec1bc790c96b5ee39b8d55dadcac6ce1b' into swift-3-indexing-model
2016-04-14 15:10:26 -07:00
Dmitri Gribenko
735f1287b0
Merge remote-tracking branch 'origin/swift-3-indexing-model' into swift-3-indexing-model
2016-04-14 14:10:27 -07:00
Dmitri Gribenko
10697f939f
Merge commit '510f29abf77e202780c11d5f6c7449313c819030' into swift-3-indexing-model
2016-04-14 13:45:27 -07:00
Max Moiseev
37bf02f7da
[stdlib][swift-3-indexing-model] changes in index(_:stepsFrom:limitedBy:)
...
- index(_:stepsFrom:limitedBy:) returns Index?
- formIndex(_:stepsFrom:limitedBy) returns Bool
2016-04-14 11:49:27 -07:00
practicalswift
c760f6dfbf
[gardening] Add whitespace: "foo,bar" → "foo, bar"
2016-04-12 22:31:46 +02:00
Dmitri Gribenko
f4987d02ec
stdlib: new indexing model: Forward more methods in AnyCollection
2016-04-08 20:29:10 -07:00
Dmitri Gribenko
81fa3ee1ad
StdlibCollectionUnittest: logging collections: update property names to match actual Collection API
2016-04-08 17:40:39 -07:00
Trent Nadeau
f96ad263a8
Added @discardableResult attr to mutating functions
2016-04-07 23:27:38 +00:00
Dmitri Gribenko
79c75f0c1a
StdlibCollectionUnittest: simplify code
2016-04-06 23:31:31 -07:00
Dmitri Gribenko
6131df64d2
stdlib: make _preprocessingPass rethrowing and add tests
2016-04-06 23:22:26 -07:00
Dmitri Gribenko
55fa27008f
StdlibCollectionUnittest: remove dead code
...
None of the minimal or defaulted collections raise expectation failures
when indexed out of bounds. This idea seemed to be good on the surface,
but turned out not that nice or useful in practice.
2016-04-06 22:31:41 -07:00
Manav Gabhawala
7928140f79
[SE-0046] Implements consistent function parameter labels by discarding extraneous parameter names and adding _ where necessary
2016-04-06 20:21:58 -04:00
Dmitri Gribenko
9c392bfdcb
StdlibCollectionUnittest: generalize MutableCollection.SubSequence.subscript(_: Range)/Set tests
2016-04-04 18:38:11 -07:00
Dmitri Gribenko
6985b958fd
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-04-04 11:42:17 -07:00
Dmitri Gribenko
b34c419a5e
StdlibCollectionUnittest: implement fast index(_:stepsFrom:) entry points in minimal collections
2016-04-04 10:46:57 -07:00
practicalswift
abfecfde17
[gardening] if ([space]…[space]) → if (…), for(…) → for (…), while(…) → while (…), [[space]x, y[space]] → [x, y]
2016-04-04 16:22:11 +02:00
Dmitri Gribenko
ffc0cab597
StdlibCollectionUnittest: remove two slow tests
2016-04-01 23:05:55 -07:00
Dmitri Gribenko
a53fb16591
StdlibCollectionUnittest: use parameterized tests for out-of-range subscript tests
...
This change decreases the testing time a little bit.
2016-04-01 14:14:58 -07:00
Dmitri Gribenko
8891f437c9
StdlibCollectionUnittest: remove some redundant range checks to speed up tests
2016-04-01 14:14:57 -07:00
Dmitri Gribenko
69e921a36f
StdlibUnittest: implement slice subscript writeback in minimal collections
2016-04-01 14:14:57 -07:00
Dmitri Gribenko
f784fd9a08
StdlibUnittest: fix infinite recursion in range checking in minimal collections
2016-04-01 14:14:57 -07:00
Dmitri Gribenko
067b244c3f
StdlibCollectionUnittest: stricter range checking in minimal collections
2016-04-01 14:12:19 -07:00
Dmitri Gribenko
2b9737cc9c
StdlibCollectionUnittest: implement out-of-range tests for slicing subscript
2016-04-01 14:12:18 -07:00
Dmitri Gribenko
6477740cda
StdlibCollectionUnittest: share data sets between out-of-bounds and slicing tests
2016-04-01 14:12:18 -07:00
Max Moiseev
171169b01f
[stdlib][swift-3-indexing-model] fixing Arrays tests
2016-04-01 14:12:17 -07:00
Dmitri Gribenko
5b2527ebb1
stdlib: make _writeBackMutableSlice() callable from StdlibCollectionUnittest
2016-04-01 14:12:16 -07:00
Dmitri Gribenko
340f464b6d
StdlibCollectionUnittest: rename methods for consistency
2016-04-01 14:12:15 -07:00
Max Moiseev
97f06a09a7
[stdlib][swift-3-indexing-model] removing Strideable requirement for checkBidirectionalCollection
2016-04-01 14:11:54 -07:00