X-Git-Url: https://piware.de/gitweb/?p=learn-rust.git;a=blobdiff_plain;f=concepts%2Fsrc%2Fmain.rs;h=3e9bbbd0cd042234615d20dd563baf6278258464;hp=f9eafe95978b7bb802c7f1b8ffd3088cf2c19792;hb=6cf2fd87f634bb24ca0ab801a8ba3fbfff1ac418;hpb=c2e012ab539dff44f0690e5d7cab4880400454fe diff --git a/concepts/src/main.rs b/concepts/src/main.rs index f9eafe9..3e9bbbd 100644 --- a/concepts/src/main.rs +++ b/concepts/src/main.rs @@ -256,6 +256,12 @@ fn test_dyn_traits() { post.request_review(); assert_eq!("", post.content()); + post.reject(); + assert_eq!("", post.content()); + + post.request_review(); + assert_eq!("", post.content()); + post.approve(); assert_eq!(text, post.content()); }