S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which macro is commonly used for unit testing?

  • (A) unit_test!
  • (B) check!
  • (C) test!
  • (D) #[test]
  • Correct Answer - Option(D)
  • Views: 6
  • Filed under category Rust
  • Hashtags:

Explanation by: Shyam Dubey
#[test] attribute is used to define unit test functions.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.