mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-05-04 12:38:07 +08:00
14 lines
253 B
Rust
Executable File
14 lines
253 B
Rust
Executable File
use blog::Post;
|
|
|
|
fn main() {
|
|
let mut post = Post::new();
|
|
|
|
post.add_text("I ate a salad for lunch today");
|
|
|
|
let post = post.request_review();
|
|
|
|
let post = post.approve();
|
|
|
|
assert_eq!("I ate a salad for lunch today", post.content());
|
|
}
|