blob: c976cd941ad47aa997c097702276c943382a5e01 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
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.");
}
|