This commit is contained in:
2026-08-17 01:21:55 +02:00
parent 5761d6e67a
commit 4bd1e24e75
265 changed files with 20617 additions and 24457 deletions
@@ -14,15 +14,14 @@
* limitations under the License.
*/
import Testing
import XCTest
@testable import FlatBuffers
struct FlatBuffersDoubleTests {
final class FlatBuffersDoubleTests: XCTestCase {
let country = "Norway"
@Test
func testCreateFinish() {
var b = FlatBufferBuilder(initialSize: 16)
let countryOff = CountryDouble.createCountry(
@@ -39,10 +38,9 @@ struct FlatBuffersDoubleTests {
97, 121, 0, 0,
]
// swiftformat:enable all
#expect(b.sizedByteArray == v)
XCTAssertEqual(b.sizedByteArray, v)
}
@Test
func testCreateFinishWithPrefix() {
var b = FlatBufferBuilder(initialSize: 16)
let countryOff = CountryDouble.createCountry(
@@ -59,7 +57,7 @@ struct FlatBuffersDoubleTests {
0, 6, 0, 0, 0, 78, 111, 114, 119, 97, 121, 0, 0,
]
// swiftformat:enable all
#expect(b.sizedByteArray == v)
XCTAssertEqual(b.sizedByteArray, v)
}
}