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

Add comment to broken test and fix it by using Base.Sort.InitialOptimizations #70

Merged
merged 6 commits into from
Feb 11, 2023

Conversation

LilithHafner
Copy link
Member

@LilithHafner LilithHafner commented Feb 4, 2023

The functional change in this PR is to opt into Base.Sort.InitialOptimizations for exported sorting algorithms. This should typically be a performance improvement.

The test commented upon here is questionable because it tests for stable results when sorting with unstable algorithms. Nevertheless, it passed in 1.8 and will continue to pass in 1.9 because we utilize Base.Sort.IEEEFloatOptimization to handle the NaN case for us in a stable manner.

Before this PR, that test failed on nightly (see failure of f857172, for example).

@codecov-commenter
Copy link

codecov-commenter commented Feb 4, 2023

Codecov Report

Merging #70 (ceea958) into master (051aad6) will increase coverage by 0.06%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #70      +/-   ##
==========================================
+ Coverage   95.95%   96.02%   +0.06%     
==========================================
  Files           1        1              
  Lines         346      352       +6     
==========================================
+ Hits          332      338       +6     
  Misses         14       14              
Impacted Files Coverage Δ
src/SortingAlgorithms.jl 96.02% <100.00%> (+0.06%) ⬆️

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

@LilithHafner LilithHafner changed the title Flag faulty tests with comments Add comment to broken test and fix it by using Base.Sort.InitialOptimizations Feb 4, 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