consistent function ordering
This commit is contained in:
parent
f27f31fac8
commit
645d89d05d
|
@ -329,10 +329,6 @@ fn colour_from_string(colour: String) -> Colour {
|
||||||
Colour { red, green, blue }
|
Colour { red, green, blue }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn colour_to_string(colour: Colour) -> String {
|
|
||||||
format!("{},{},{}", colour.red, colour.green, colour.blue)
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_colour_from_string() {
|
fn test_colour_from_string() {
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
|
@ -341,6 +337,10 @@ fn test_colour_from_string() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn colour_to_string(colour: Colour) -> String {
|
||||||
|
format!("{},{},{}", colour.red, colour.green, colour.blue)
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_colour_to_string() {
|
fn test_colour_to_string() {
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
|
|
Loading…
Reference in New Issue