【Rust】——编写自动化测试(一)

🎯编写和运行测试🎃测试(函数)🎃解剖测试函数🎯断言(Assert)🎃使用assert!宏检查测试结果🎃使用assert_eq!和assert_ne!测试相等性🎯自定义错误信息🎯使用should...