📅  最后修改于: 2022-03-11 14:48:05.305000             🧑  作者: Mango
var hasCorrectArea = predicate((rect) => rect.area == rect.length * rect.width,
"has correct area");
expect(myRect, hasCorrectArea);