Решение на CSS Цветове от Радослав Радков
Обратно към всички решения
Към профила на Радослав Радков
Резултати
- 0 точки от тестове
- 0 бонус точки
- 0 точки общо
- 0 успешни тест(а)
- 0 неуспешни тест(а)
Код
Лог от изпълнението
Compiling solution v0.1.0 (/tmp/d20230111-3772066-1muu17j/solution)
warning: function `main` is never used
--> src/lib.rs:82:4
|
82 | fn main() {
| ^^^^
|
= note: `#[warn(dead_code)]` on by default
warning: `solution` (lib) generated 1 warning
error[E0599]: no method named `invert` found for enum `solution::Color` in the current scope
--> tests/solution_test.rs:32:22
|
32 | assert_eq!(black.invert().unwrap_rgb(), white.unwrap_rgb());
| ^^^^^^ method not found in `solution::Color`
error[E0599]: no method named `invert` found for enum `solution::Color` in the current scope
--> tests/solution_test.rs:33:22
|
33 | assert_eq!(white.invert().unwrap_rgb(), black.unwrap_rgb());
| ^^^^^^ method not found in `solution::Color`
error[E0599]: no method named `invert` found for enum `solution::Color` in the current scope
--> tests/solution_test.rs:37:23
|
37 | assert_eq!(color1.invert().unwrap_rgb(), color2.unwrap_rgb());
| ^^^^^^ method not found in `solution::Color`
error[E0599]: no method named `invert` found for enum `solution::Color` in the current scope
--> tests/solution_test.rs:38:23
|
38 | assert_eq!(color2.invert().unwrap_rgb(), color1.unwrap_rgb());
| ^^^^^^ method not found in `solution::Color`
error[E0599]: no method named `invert` found for enum `solution::Color` in the current scope
--> tests/solution_test.rs:40:23
|
40 | assert_eq!(color1.invert().invert().unwrap_rgb(), color1.unwrap_rgb());
| ^^^^^^ method not found in `solution::Color`
error[E0599]: no method named `invert` found for enum `solution::Color` in the current scope
--> tests/solution_test.rs:41:23
|
41 | assert_eq!(color2.invert().invert().unwrap_rgb(), color2.unwrap_rgb());
| ^^^^^^ method not found in `solution::Color`
error[E0599]: no method named `invert` found for enum `solution::Color` in the current scope
--> tests/solution_test.rs:49:21
|
49 | assert_eq!(zero.invert().unwrap_hsv(), full.unwrap_hsv());
| ^^^^^^ method not found in `solution::Color`
error[E0599]: no method named `invert` found for enum `solution::Color` in the current scope
--> tests/solution_test.rs:50:21
|
50 | assert_eq!(full.invert().unwrap_hsv(), zero.unwrap_hsv());
| ^^^^^^ method not found in `solution::Color`
error[E0599]: no method named `invert` found for enum `solution::Color` in the current scope
--> tests/solution_test.rs:54:23
|
54 | assert_eq!(color1.invert().unwrap_hsv(), color2.unwrap_hsv());
| ^^^^^^ method not found in `solution::Color`
error[E0599]: no method named `invert` found for enum `solution::Color` in the current scope
--> tests/solution_test.rs:55:23
|
55 | assert_eq!(color2.invert().unwrap_hsv(), color1.unwrap_hsv());
| ^^^^^^ method not found in `solution::Color`
error[E0599]: no method named `invert` found for enum `solution::Color` in the current scope
--> tests/solution_test.rs:57:23
|
57 | assert_eq!(color1.invert().invert().unwrap_hsv(), color1.unwrap_hsv());
| ^^^^^^ method not found in `solution::Color`
error[E0599]: no method named `invert` found for enum `solution::Color` in the current scope
--> tests/solution_test.rs:58:23
|
58 | assert_eq!(color2.invert().invert().unwrap_hsv(), color2.unwrap_hsv());
| ^^^^^^ method not found in `solution::Color`
For more information about this error, try `rustc --explain E0599`.
error: could not compile `solution` due to 12 previous errors
История (1 версия и 3 коментара)
Радослав качи първо решение на 27.10.2022 11:44 (преди почти 3 години)