Skip to content

Commit

Permalink
Move iteration into OffsetContainer
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Hoffmann <[email protected]>
  • Loading branch information
antiguru committed Jul 2, 2024
1 parent f029045 commit 33a5ab9
Show file tree
Hide file tree
Showing 3 changed files with 249 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/impls/columns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ mod tests {
indices.push(index);
}

for (&index, row) in indices.iter().zip(&data) {
for (index, row) in indices.iter().zip(&data) {
assert!(row.iter().copied().eq(r.index(index).iter()));
}
}
Expand All @@ -553,7 +553,7 @@ mod tests {
indices.push(index);
}

for (&index, row) in indices.iter().zip(&data) {
for (index, row) in indices.iter().zip(&data) {
assert!(row.iter().copied().eq(r.index(index).iter()));
}

Expand Down Expand Up @@ -582,7 +582,7 @@ mod tests {
indices.push(index);
}

for (&index, row) in indices.iter().zip(&data) {
for (index, row) in indices.iter().zip(&data) {
assert!(row.iter().eq(r.index(index).iter()));
}

Expand Down Expand Up @@ -610,8 +610,8 @@ mod tests {
indices.push(index);
}

for (&index, row) in indices.iter().zip(&data) {
assert!(row.iter().copied().eq(r.index(index).iter()));
for (index, row) in indices.iter().zip(&data) {
assert!(row.iter().eq(r.index(index).iter()));
}

println!("{r:?}");
Expand All @@ -638,8 +638,8 @@ mod tests {
indices.push(index);
}

for (&index, row) in indices.iter().zip(&data) {
assert!(row.iter().copied().eq(r.index(index).iter()));
for (index, row) in indices.iter().zip(&data) {
assert!(row.iter().eq(r.index(index).iter()));
}

assert_eq!("1", r.index(indices[1]).get(0));
Expand Down
Loading

0 comments on commit 33a5ab9

Please sign in to comment.