initial commit
This commit is contained in:
4
exercises/07_threads/14_sync/Cargo.toml
Normal file
4
exercises/07_threads/14_sync/Cargo.toml
Normal file
@@ -0,0 +1,4 @@
|
||||
[package]
|
||||
name = "sync"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
14
exercises/07_threads/14_sync/src/lib.rs
Normal file
14
exercises/07_threads/14_sync/src/lib.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
// Not much to be exercised on `Sync`, just a thing to remember.
|
||||
fn outro() -> &'static str {
|
||||
"I have a good understanding of __!"
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::outro;
|
||||
|
||||
#[test]
|
||||
fn test_outro() {
|
||||
assert_eq!(outro(), "I have a good understanding of Send and Sync!");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user