Nate Cook
ff86a69dd7
Add a StdlibUnitTest modifier for requiring a stdlib version ( #79838 )
...
It would be great if this could also set the availability for the `code:`
block, but this at least cuts out some boilerplate.
2025-03-08 13:07:20 -06:00
Mishal Shah
af112c1591
Update the Swift version to 6.0 from 5.11
2024-02-19 17:47:16 -08:00
Guillaume Lessard
fa9c80ae08
[test] round out testing for String.init?(validating:as:)
2024-01-10 14:32:26 -08:00
Guillaume Lessard
566fbf4fec
[se-0405] update availability to a realistic release target
2023-12-21 10:44:52 -08:00
Guillaume Lessard
7648210129
[test] se-0405 input-validating String initializers
2023-12-21 10:44:52 -08:00
Ben Rimmington
98ada1b200
[stdlib] Fix buffer size of small-capacity strings ( #67929 )
2023-08-16 10:00:42 +01:00
Anthony Latsis
52ce15ee9d
Gardening: Migrate test suite to GH issues: stdlib
2022-09-22 03:21:39 +03:00
Allan Shortlidge
e365fd1ef4
Tests: Mark test/stdlib/StringCreate.swift as unsupported on back deployment bots.
...
Using XFAIL won't work here because the tests pass on the iOS back deployment bots, resulting in a UPASS.
I was able to take a look at the test binary and rule out both codegen for `if #available(...)` and the optimizer as culprits so the next step is to check if `_stdlib_isOSVersionAtLeast()` is actually busted in the runtime libraries in older versions of macOS.
2022-06-06 17:05:18 -07:00
Allan Shortlidge
c0b91c9cad
Tests: XFAIL test/stdlib/StringCreate.swift on the back deployment bots until the failures there can be investigated further.
2022-06-02 09:14:23 -07:00
Karoy Lorentey
e2cfab4f28
[stdlib][test] Adopt availability macros in tests
2021-10-31 15:00:58 -07:00
David Smith
3f716e3e0f
Tests for invalid UTF8 handling
2021-08-31 09:14:49 -07:00
David Smith
4209361695
Revert "Copy the code units into a temporary buffer in the invalid UTF8 handling path of String(unsafeUninitializedCapacity:initializingWith:) before calling a function which might invalidate the String's buffer. rdar://80379070"
...
This reverts commit 4bdc8e3c99 .
2021-08-31 08:50:35 -07:00
David Smith
4bdc8e3c99
Copy the code units into a temporary buffer in the invalid UTF8 handling path of String(unsafeUninitializedCapacity:initializingWith:) before calling a function which might invalidate the String's buffer. rdar://80379070
2021-08-30 21:27:50 -07:00
Xiaodi Wu
9ef5ed066b
[SR-14424] Add 'moveInitialize' test case for small string 'init(unsafeUninitializedCapacity:initializingUTF8With:)' ( #36742 )
...
* [SR-14424] Add 'moveInitialize' test case for small string 'init(unsafeUninitializedCapacity:initializingUTF8With:)'
...and make an adjustment to an existing test case.
* [stdlib][test] Update test cases for small string unsafeUninitializedCapacity based on reviewer feedback.
* [fixup]
2021-04-04 15:16:20 -04:00
Michael Ilseman
49eddbf318
[stdlib] Fix bug in small string uninitialized init
...
Fix a bug and enforce the invariant that all bits between the last code unit
and the descriminator in a small string should be unset.
2021-03-30 18:24:28 -06:00
Mishal Shah
272c466e47
Update master to build with Xcode 12 beta
2020-06-22 15:43:20 -07:00
Ben Rimmington
557e5662e4
[SE-0263] Add test for public API
2020-03-05 14:51:10 +00:00
Michael Ilseman
877a20ead0
[String] Fix crash when given null UBP
2019-02-06 14:44:01 -08:00