Skip to content

Commit

Permalink
update gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyb983 committed Apr 12, 2022
1 parent c5821a0 commit 136272a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ Cargo.lock
/rust.code-workspace
scratch.txt
/scratch*.txt
/default.profraw
/default.profraw
**/*~
12 changes: 12 additions & 0 deletions src/color/colors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1037,6 +1037,18 @@ pub mod iter {
current
}
}

#[cfg(test)]
mod tests {
use super::*;
use pretty_assertions::assert_eq;

#[test]
fn default() {
let mut iter: ColorsIter = Default::default();
assert_eq!(iter.next(), Some(Colors::AliceBlue));
}
}
}

#[cfg(test)]
Expand Down

0 comments on commit 136272a

Please sign in to comment.