From: Jae-Won Chung Date: Wed, 22 May 2024 09:00:51 +0000 (-0400) Subject: Check status field value after patch (#22) X-Git-Url: http://git.euphorik.ch/index.cgi?a=commitdiff_plain;h=9bda4eb7e095084b0500175c5961395a742a98f8;p=rust_exercises.git Check status field value after patch (#22) --- diff --git a/exercises/07_threads/10_patch/tests/check.rs b/exercises/07_threads/10_patch/tests/check.rs index 466f412..c7d6513 100644 --- a/exercises/07_threads/10_patch/tests/check.rs +++ b/exercises/07_threads/10_patch/tests/check.rs @@ -26,5 +26,6 @@ fn works() { client.update(patch).unwrap(); let ticket = client.get(ticket_id).unwrap().unwrap(); - assert_eq!(ticket_id, ticket.id); + assert_eq!(ticket.id, ticket_id); + assert_eq!(ticket.status, Status::InProgress); }