This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Answer the following questions, then select Check your answers.
What is the expected outcome of a test function tagged with the #[test] attribute?
#[test]
This function shouldn't be executed during tests.
This function should panic during tests.
This function should execute a test without any panic.
This tag indicates the function is a test and shouldn't be executed.
What is the expected outcome of a test function tagged with the #[test] and #[should_panic] attributes?
#[should_panic]
This function should execute without any panic.
What is the expected outcome of a test function tagged with the #[test] and #[ignore] attributes?
#[ignore]
You must answer all questions before checking your work.
Continue
Was this page helpful?