Skip to content

Commit

Permalink
Fixes #17
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbs committed May 6, 2022
1 parent 6ca9935 commit 95a4c64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/RunestoneTests/StringViewTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ final class StringViewTests: XCTestCase {
func testGetBytesOfFirstCharacter() {
let str = "Hello world"
let stringView = StringView(string: str)
let byteRange = ByteRange(location: 2, length: 2)
let byteRange = ByteRange(location: 0, length: 2)
let bytes = stringView.bytes(in: byteRange)!
XCTAssertEqual(string(from: bytes), "e")
XCTAssertEqual(string(from: bytes), "H")
}

func testGetBytesOfTwoFirstCharacters() {
Expand Down

0 comments on commit 95a4c64

Please sign in to comment.