Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(core): add coverage for new routines #267

Merged
merged 6 commits into from
Jan 20, 2025
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
8 changes: 4 additions & 4 deletions honeycomb-core/src/cmap/components/betas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ impl<const N: usize> BetaFunctions<N> {
) -> Result<(), StmError> {
// we could technically overwrite the value, but these assertions
// makes it easier to assert algorithm correctness
assert!(self[(1, lhs_dart_id)].read_atomic() == NULL_DART_ID);
assert!(self[(0, rhs_dart_id)].read_atomic() == NULL_DART_ID);
assert!(self[(1, lhs_dart_id)].read(trans)? == NULL_DART_ID);
assert!(self[(0, rhs_dart_id)].read(trans)? == NULL_DART_ID);
// set beta_1(lhs_dart) to rhs_dart
self[(1, lhs_dart_id)].write(trans, rhs_dart_id)?;
// set beta_0(rhs_dart) to lhs_dart
Expand Down Expand Up @@ -117,8 +117,8 @@ impl<const N: usize> BetaFunctions<N> {
) -> Result<(), StmError> {
// we could technically overwrite the value, but these assertions
// make it easier to assert algorithm correctness
assert!(self[(2, lhs_dart_id)].read_atomic() == NULL_DART_ID);
assert!(self[(2, rhs_dart_id)].read_atomic() == NULL_DART_ID);
assert!(self[(2, lhs_dart_id)].read(trans)? == NULL_DART_ID);
assert!(self[(2, rhs_dart_id)].read(trans)? == NULL_DART_ID);
// set beta_2(lhs_dart) to rhs_dart
self[(2, lhs_dart_id)].write(trans, rhs_dart_id)?;
// set beta_2(rhs_dart) to lhs_dart
Expand Down
Loading
Loading