mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-03 15:24:13 +00:00
[Swift] Migrate to use Swift Testing (#9076)
* Migrating from Xctests to swift testing This migrates to the new Swift testing framework, which would allow us to always use the latest tech from swift moving forward. * Updates flag to make sure that Wasm testing works
This commit is contained in:
@@ -16,10 +16,12 @@
|
||||
|
||||
import Common
|
||||
import FlexBuffers
|
||||
import XCTest
|
||||
import Foundation
|
||||
import Testing
|
||||
|
||||
final class FlexBuffersStringTests: XCTestCase {
|
||||
struct FlexBuffersStringTests {
|
||||
|
||||
@Test
|
||||
func testEncodingUnicodeString() {
|
||||
let text = "プ画をみて✋"
|
||||
|
||||
@@ -38,6 +40,6 @@ final class FlexBuffersStringTests: XCTestCase {
|
||||
return String(data: data, encoding: .unicode)
|
||||
}
|
||||
|
||||
XCTAssertEqual(builtString, text)
|
||||
#expect(builtString == text)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user