mirror of
https://github.com/google/flatbuffers.git
synced 2026-11-18 09:52:04 +00:00
Bigfoot
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user