let b_span = b.span.source_callsite();let (lit_span, bool_value, non_lit_expr) = match (extract_bool_lit(a), extract_bool_lit(b)) { // assert_eq!(true/false, b) // ^^^ (Some(bool_value), None) => (a_span.until(b_span), bool_value, b), // assert_eq...
A.@Test注解标注的测试方法只能是public void的,且不能有任何输入参数B.AssertEquals、AssertNotEquals:判断两个对象是否为同一个C.@BeforeClass注解每一个测试方法都要执行一次,且必须为static voidD.Junit的底层实现上,是用System.exit退出用例执行E.【答案】AD相关...
Expand lint bool_assert_comparison to catch assert!(a == b) and assert!(a != b) (or their debug versions), and suggest to replace them with the corresponding assert_eq!(a, b) or assert_ne!(a, b). TODO: Decide if this lint should expand bool_assert_comparison or be a new lint...