Commit Graph

10 Commits

Author SHA1 Message Date
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