Skip to content

Commit

Permalink
fix detail
Browse files Browse the repository at this point in the history
Signed-off-by: martinvuyk <[email protected]>
  • Loading branch information
martinvuyk committed Nov 5, 2024
1 parent 7d8457c commit 810fb78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stdlib/test/builtin/test_sort_issue_1018.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ from utils import Span
fn sort_test[D: DType, name: StringLiteral](size: Int, max: Int) raises:
var p = UnsafePointer[SIMD[D, 1]].alloc(size)
rand[D](p, size)
sort(Span[Scalar[D], MutableAnyOrigin](unsafe_ptr=p, len=size))
sort(Span[Scalar[D], MutableAnyOrigin](ptr=p, length=size))
for i in range(1, size - 1):
if p[i] < p[i - 1]:
print(name, "size:", size, "max:", max, "incorrect sort")
Expand Down
2 changes: 1 addition & 1 deletion stdlib/test/utils/test_string_slice.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ def test_count_utf8_continuation_bytes():

def _test(amnt: Int, items: List[UInt8]):
p = items.unsafe_ptr()
span = Span[Byte, StaticConstantOrigin](unsafe_ptr=p, len=len(items))
span = Span[Byte, StaticConstantOrigin](ptr=p, length=len(items))
assert_equal(amnt, _count_utf8_continuation_bytes(span))

_test(5, List[UInt8](c, c, c, c, c))
Expand Down

0 comments on commit 810fb78

Please sign in to comment.