• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

awakia / ruby_stable_sort
93%

Build:
DEFAULT BRANCH: master
Repo Added 10 Apr 2014 07:25AM UTC
Files 6
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH master
branch: master
CHANGE BRANCH
x
Reset
  • master
  • coveralls
  • v1.1.0

pending completion
21

Pull #3

travis-ci

web-flow
Make tests more reliable, especially for MRI >= 2.2

* Monkey-patch built-sorts to force them to be unstable in all Rubies.
  Some rubies (such as MRI >= 2.2) have stable sorts, which can cause
  the tests to pass erroneously.  See
  https://stackoverflow.com/a/44486562/238886 for more about sort
  stability in Ruby

* Set the random number seed in order to make tests repeatable.  Since
  the tests sort relatively short arrays, random chance would
  sometimes cause erroneous test failures.

* Some tests checked that Ruby's built-in sort is unstable.  Those
  checks were moved into their own sections and expanded.  Now every
  Ruby built-in sort method is tested for to ensure that it is
  unstable.
Pull Request #3: Repeatable tests

66 of 66 new or added lines in 2 files covered. (100.0%)

99 of 106 relevant lines covered (93.4%)

3.88 hits per line

Relevant lines Covered
Build:
Build:
106 RELEVANT LINES 99 COVERED LINES
3.88 HITS PER LINE
Source Files on master
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
21 master Make tests more reliable, especially for MRI >= 2.2 * Monkey-patch built-sorts to force them to be unstable in all Rubies. Some rubies (such as MRI >= 2.2) have stable sorts, which can cause the tests to pass erroneously. See https://stack... Pull #3 17 Jun 2017 02:31PM UTC web-flow travis-ci pending completion  
20 master Use expect in version part push 27 Aug 2015 02:59AM UTC Naoyoshi Aikawa travis-ci pending completion  
19 master Use expect in rspec push 27 Aug 2015 02:49AM UTC awakia travis-ci pending completion  
18 master Change to use master branch of coveralls badge push 10 Apr 2014 08:48AM UTC awakia travis-ci pending completion  
16 master Bump version to 1.1.0 push 10 Apr 2014 08:20AM UTC awakia travis-ci pending completion  
15 master Merge pull request #1 from cielavenir/master Enumerator->Enumerable push 10 Apr 2014 08:18AM UTC awakia travis-ci pending completion  
14 master Merge pull request #2 from awakia/coveralls Add Coveralls push 10 Apr 2014 07:53AM UTC awakia travis-ci pending completion  
See All Builds (10)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc