Fix unit tests broken in merge

Rename clashed with new test.
This commit is contained in:
Kevin Clark committed 2017-06-07 11:25:01 -07:00
1 parent 65aa3f6bbd
commit b3a98126f7
1 file changed
+5 -4
+5 -4
View File
@@ -27,14 +27,15 @@ class ByteBufferTest: XCTestCase {
func testEqualsComparesReadBuffersOnly() throws {
// Only cares about the read buffer
buf.writeInteger(value: Int8.max)
buf.writeString(value: "oh hi")
let _: Int8 = buf.readInteger()! // Just getting rid of it from the read buffer
buf.write(integer: Int8.max)
buf.write(string: "oh hi")
let _: Int8 = buf.read()! // Just getting rid of it from the read buffer
var otherBuffer = try! allocator.buffer(capacity: 32)
otherBuffer.writeString(value: "oh hi")
otherBuffer.write(string: "oh hi")
XCTAssertEqual(otherBuffer, buf)
}
func testWrappedData() {
let data = "Test".data(using: .utf8)!
let buffer = allocator.buffer(wrapped: data)