initial commit
This commit is contained in:
4
exercises/07_threads/00_intro/Cargo.toml
Normal file
4
exercises/07_threads/00_intro/Cargo.toml
Normal file
@@ -0,0 +1,4 @@
|
||||
[package]
|
||||
name = "intro_07"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
17
exercises/07_threads/00_intro/src/lib.rs
Normal file
17
exercises/07_threads/00_intro/src/lib.rs
Normal file
@@ -0,0 +1,17 @@
|
||||
fn intro() -> &'static str {
|
||||
// TODO: fix me 👇
|
||||
"I'm ready to _!"
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::intro;
|
||||
|
||||
#[test]
|
||||
fn test_intro() {
|
||||
assert_eq!(
|
||||
intro(),
|
||||
"I'm ready to build a concurrent ticket management system!"
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user