Skip to content

Conversation

chenyanchen
Copy link

Make the entry's index right.

@chenyanchen
Copy link
Author

Fix #39

@chenyanchen
Copy link
Author

I found a workflow in .github directory, why Test action not checked? Did you add a Branch protection for main.

func (q priorityQueue[K, V]) Swap(i, j int) {
q[i], q[j] = q[j], q[i]
q[i].index = i
q[j].index = j
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chenyanchen Did you fix just this line?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

@Code-Hex
Copy link
Owner

I approved to run actions in this PR for now

@codecov
Copy link

codecov bot commented May 10, 2023

Codecov Report

Merging #40 (20c3c20) into main (0cefe16) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main       #40   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           10        10           
  Lines          533       533           
=========================================
  Hits           533       533           
Impacted Files Coverage Δ
policy/lfu/priority_queue.go 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@chenyanchen
Copy link
Author

What's wrong with Test(^1.19)

Copy link
Owner

@Code-Hex Code-Hex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
Thank you

@Code-Hex Code-Hex merged commit 9f98378 into Code-Hex:main May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants