]> piware.de Git - learn-rust.git/blobdiff - concepts/src/main.rs
concepts: Add Post.reject() transition
[learn-rust.git] / concepts / src / main.rs
index f9eafe95978b7bb802c7f1b8ffd3088cf2c19792..3e9bbbd0cd042234615d20dd563baf6278258464 100644 (file)
@@ -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());
 }