Skip to content

Commit

Permalink
Merge pull request #4255 from wilzbach/fix_travis
Browse files Browse the repository at this point in the history
std.algorithm.searching.extremum - fix float comp in unittest
  • Loading branch information
CyberShadow committed Apr 28, 2016
2 parents b4dccd4 + cc5e36d commit e56537d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/algorithm/searching.d
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,7 @@ private auto extremum(alias map = "a", alias selector = "a < b", Range,
assert(arr2d.extremum([1]) == [1]);

// allow seeds of different types (implicit casting)
assert([2, 3, 4].extremum(1.5) == 1.5);
assert(extremum([2, 3, 4], 1.5) == 1.5);
}

// find
Expand Down

0 comments on commit e56537d

Please sign in to comment.