use super::types::ProgramTask;
pub const PROGRAM_TASKS: &[ProgramTask] = &[
ProgramTask {
slug: "hello_world",
label: "hello world",
output: "Hello, world!",
},
ProgramTask {
slug: "count_to_three",
label: "count to three",
output: "1\n2\n3",
},
ProgramTask {
slug: "list_files",
label: "list files in the current directory",
output: "Cargo.toml\nREADME.md\nmain.rs",
},
ProgramTask {
slug: "list_files_arg",
label: "list files in the directory given as a path argument",
output: "Cargo.toml\nREADME.md\nmain.rs",
},
ProgramTask {
slug: "list_files_reverse_sort",
label: "list files in the current directory in reverse-sorted order",
output: "main.rs\nREADME.md\nCargo.toml",
},
ProgramTask {
slug: "list_files_arg_reverse_sort",
label: "list files from a path argument in reverse-sorted order",
output: "main.rs\nREADME.md\nCargo.toml",
},
ProgramTask {
slug: "fizzbuzz",
label: "FizzBuzz",
output: "1\n2\nFizz\n4\nBuzz\nFizz\n7\n8\nFizz\nBuzz\n11\nFizz\n13\n14\nFizzBuzz",
},
ProgramTask {
slug: "factorial",
label: "factorial of 5",
output: "120",
},
ProgramTask {
slug: "reverse_string",
label: "string reversal",
output: "olleh",
},
ProgramTask {
slug: "sum_to_ten",
label: "sum from 1 to 10",
output: "55",
},
ProgramTask {
slug: "fibonacci",
label: "recursive Fibonacci",
output: "55",
},
];