tests don't need test_ prefix
This commit is contained in:
@@ -35,7 +35,7 @@ mod test {
|
||||
use crate::colour::Colour;
|
||||
|
||||
#[test]
|
||||
fn test_colour_from_string() {
|
||||
fn colour_from_string() {
|
||||
assert_eq!(
|
||||
Colour::from("0,255,0").unwrap(),
|
||||
Colour { red: 0, green: 255, blue: 0 }
|
||||
@@ -43,22 +43,22 @@ mod test {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_colour_to_string() {
|
||||
fn colour_to_string() {
|
||||
assert_eq!(Colour { red: 22, green: 33, blue: 44, }.to_string(), "22,33,44".to_string());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_colour_missing_value() {
|
||||
fn colour_missing_value() {
|
||||
assert!(Colour::from("0,0").is_err());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_colour_ambiguous_value() {
|
||||
fn colour_ambiguous_value() {
|
||||
assert!(Colour::from("0,0,").is_err());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_colour_extraneous_value() {
|
||||
fn colour_extraneous_value() {
|
||||
assert!(Colour::from("0,0,0,0").is_err());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user