Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
248 changes: 124 additions & 124 deletions array/array_test.mbt

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions array/blit.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ pub fn copy[T](self : FixedArray[T]) -> FixedArray[T] {
test "copy" {
let a : FixedArray[_] = [1, 2, 3, 4]
let b = a.copy()
inspect(b, content="[1, 2, 3, 4]")?
inspect(physical_equal(b, a), content="false")?
inspect(b, content="[1, 2, 3, 4]")!
inspect(physical_equal(b, a), content="false")!
let c = FixedArray::make(8, 0)
a.blit_to(c, len=4, dst_offset=3)
inspect(c, content="[0, 0, 0, 1, 2, 3, 4, 0]")?
inspect(([] : FixedArray[Int]).copy(), content="[]")?
inspect(c, content="[0, 0, 0, 1, 2, 3, 4, 0]")!
inspect(([] : FixedArray[Int]).copy(), content="[]")!
a.blit_to(a, len=2, src_offset=1)
inspect(a, content="[2, 3, 3, 4]")?
inspect(a, content="[2, 3, 3, 4]")!
}
Loading