a1 1.0.1

A package for converting to and from A1 spreadsheet notation
Documentation
use super::Row;
use std::cmp;

impl PartialOrd for Row {
    fn partial_cmp(&self, other: &Self) -> Option<cmp::Ordering> {
        Some(self.cmp(other))
    }
}

#[cfg(test)]
mod tests {
    use crate::*;
    use std::cmp::Ordering;

    #[test]
    fn partial_cmp() {
        assert_eq!(
            Row::new(5).partial_cmp(&Row::new(3)),
            Some(Ordering::Greater)
        );
        assert_eq!(Row::new(5).partial_cmp(&Row::new(5)), Some(Ordering::Equal));
        assert_eq!(
            Row::new(5).partial_cmp(&Row::new(100)),
            Some(Ordering::Less)
        );
    }
}