about summary refs log tree commit diff
path: root/src/libcore/tests/cmp.rs
AgeCommit message (Collapse)AuthorLines
2020-07-27mv std libs to library/mark-118/+0
2019-12-22Format the worldMark Rousskov-3/+3
2019-11-29Optimize Ord trait implementation for boolKrishna Sai Veera Reddy-0/+8
Casting the booleans to `i8`s and converting their difference into `Ordering` generates better assembly than casting them to `u8`s and comparing them.
2019-09-14Add cmp::{min_by, min_by_key, max_by, max_by_key}Tim Vermeulen-1/+23
2018-12-25Remove licensesMark Rousskov-10/+0
2017-06-06Add max and min default fns to Ord traitNick Whitney-0/+10
Pursuant to issue #25663, this commit adds the max and min functions to the Ord trait, enabling items that implement Ord to use UFCS (ex. 1.max(2)) instead of the longer std::cmp::max(1,2) format.
2017-04-03Move libXtest into libX/testsStjepan Glavina-0/+88
This change moves: 1. `libcoretest` into `libcore/tests` 2. `libcollectionstest` into `libcollections/tests` This is a follow-up to #39561.