blob: c976cd941ad47aa997c097702276c943382a5e01 (
plain) (
tree)
|
|
use blog::Post;
fn main() {
// let mut post = Post::new();
//
// post.add_text("salad");
// assert_eq!("", post.content());
//
// post.request_review();
// assert_eq!("", post.content());
//
// post.approve();
// assert_eq!("salad", post.content());
// let mut post = Post::new();
// post.add_text("salad");
// assert_eq!("", post.content());
let mut post = Post::new();
post.add_text("salad");
let post = post.request_review();
let post = post.approve();
assert_eq!("salad", post.content());
println!("Done.");
}
|