A

Admin • 802.91K Points
Coach

Q. Which macro is used to define unit tests in Rust?

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

Explanation by: Admin
`#[test]` is an attribute used to mark functions as unit tests.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.