Jordan Rose
e4e9c71d8f
StdlibUnittest: Rename enum cases and static vars to match API guidelines.
2016-02-24 18:23:59 -08:00
Dmitri Gribenko
bf34b047d8
stdlib: lowercase cases of FloatingPointClassification enum
2016-02-15 23:48:02 -08:00
Max Moiseev
3a3984877a
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-15 15:43:34 -08:00
Chris Lattner
92750511df
Convert the last uses of __FILE__ etc in the testsuite over to the new
...
syntax. I left the tests for the deprecation warnings in
test/expr/expressions.swift.
2016-02-04 15:41:09 -08:00
Max Moiseev
f51e708a8f
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-01-04 12:25:25 -08:00
ken0nek
3ac60b13f5
Add spaces before and after closure arrow in test
2015-12-23 04:38:46 +09:00
Doug Gregor
a97ab6dd14
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2015-12-18 10:15:47 -08:00
Patrick Pijnappel
dcd113b6b1
[stdlib] Adjust formatting to fit 80 columns
2015-12-18 16:35:39 +11:00
Patrick Pijnappel
1cb967548c
[stdlib] Adjust formatting to reduce width
2015-12-18 15:39:48 +11:00
Patrick Pijnappel
efac598be2
[stdlib] Add Equatable conformance test for FloatingPointClassification
2015-12-18 13:39:36 +11:00
Maxim Moiseev
0e54467bfa
Final bulk removal of Type suffix
2015-12-16 17:06:19 -08:00
Erik Eckstein
0830c36974
[tests] add import statements to prevent unresolved symbols when compiling StdlibUnittest with -sil-serialize-all.
...
This is the second part of 308f39fe56 .
It fixes (better: works-around) linker errors when testing in optimized mode.
2015-12-15 10:46:10 -08:00
Arsen Gasparyan
52890e5c30
Replace if true {} with do {}
2015-12-13 10:54:54 +03:00
Dmitri Hrybenko
4375a463a7
stdlib: rename Int**.value and Float**.value to _value per naming convention
...
rdar://21357661
Swift SVN r32096
2015-09-20 00:01:13 +00:00
Dmitri Hrybenko
f5de8757e4
stdlib: remove Word and UWord
...
These types are leftovers from the early pre-1.0 times when Int and UInt
were always 64-bit on all platforms. They serve no useful purpose
today. Int and UInt are defined to be word-sized and should be used
instead.
rdar://18693488
Swift SVN r30564
2015-07-24 05:01:32 +00:00
Joe Groff
eaa1ef8e35
stdlib: Fix sign bug in Float*(integerLiteral:).
...
Int is signed, not unsigned, so should be converted using sitofp. Fixes rdar://problem/20467684.
Swift SVN r30487
2015-07-22 02:44:37 +00:00
Dave Abrahams
c2e9cdc26e
Fix a test for ARM
...
Swift SVN r30082
2015-07-10 19:32:50 +00:00
Arnold Schwaighofer
24f2c7d31d
Disable test that fails on targets without float80
...
rdar://21767290
Swift SVN r30071
2015-07-10 16:42:23 +00:00
Dave Abrahams
c1f371a5b8
[stdlibunittest] Add checkStrideable
...
Also, apply it, in a rudimentary way, to our floating point types.
Swift SVN r30068
2015-07-10 14:27:11 +00:00
Dave Abrahams
ef198daa2b
[stdlibunittest] Finish threading new trace facility through
...
Swift SVN r29955
2015-07-08 02:52:27 +00:00
Dave Abrahams
70ee2adc84
[stdlibunittest] More de-boilerplating WIP
...
Step 2.
Swift SVN r29936
2015-07-07 04:54:03 +00:00
Arnold Schwaighofer
f7771859d8
Rename the optimize_test feature to executable_test and document that feature.
...
Swift SVN r29213
2015-06-01 23:44:13 +00:00
Arnold Schwaighofer
3643c614a3
Run tests in optimize test modes
...
This runs all files that have a target-build-swift or target-run-stdlib-swift
RUN line in optimize test mode.
Swift SVN r29206
2015-06-01 21:23:31 +00:00
Arnold Schwaighofer
57d88a097a
On arm we flush subnormals to zero so testing subnormals won't work.
...
Swift SVN r28914
2015-05-22 13:27:21 +00:00
Dmitri Hrybenko
e253881b02
stdlib: protocol extensions: de-underscore indices
...
Swift SVN r28245
2015-05-07 00:30:35 +00:00
Doug Gregor
793b3326af
Implement the new rules for argument label defaults.
...
The rule changes are as follows:
* All functions (introduced with the 'func' keyword) have argument
labels for arguments beyond the first, by default. Methods are no
longer special in this regard.
* The presence of a default argument no longer implies an argument
label.
The actual changes to the parser and printer are fairly simple; the
rest of the noise is updating the standard library, overlays, tests,
etc.
With the standard library, this change is intended to be API neutral:
I've added/removed #'s and _'s as appropriate to keep the user
interface the same. If we want to separately consider using argument
labels for more free functions now that the defaults in the language
have shifted, we can tackle that separately.
Fixes rdar://problem/17218256.
Swift SVN r27704
2015-04-24 19:03:30 +00:00
Dave Abrahams
ac3f047496
[stdlib] Renaming fallout from Mirror API review
...
toString(x) => String(x)
toDebugString(x) => String(reflecting: x)
Printable => CustomStringConvertible
DebugPrintable => CustomDebugStringConvertible
Also updated comments to clarify these protocols
Swift SVN r27090
2015-04-07 20:32:26 +00:00
Graham Batty
0a73f54e98
Implement a glibc module for StdlibUnittest on linux
...
Swift SVN r25807
2015-03-06 22:05:13 +00:00
Dmitri Hrybenko
3d6cf683f6
tests: add radars to FIXMEs
...
Swift SVN r25683
2015-03-02 16:11:18 +00:00
Dmitri Hrybenko
5ec04a895f
stdlib: use the unordered comparison for != on floating point
...
... so that NaNs don't compare equal to NaNs. Thanks Joe!
rdar://19853437
Swift SVN r25546
2015-02-26 07:58:40 +00:00
Dmitri Hrybenko
5aeb17ad95
stdlib: use correct comparison semantics for floating point numbers
...
Previously, we did not handle NaNs correctly.
rdar://19853437
Swift SVN r25542
2015-02-26 06:53:09 +00:00