Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

dart test matcher expecting a field value

var hasCorrectArea = predicate((rect) => rect.area == rect.length * rect.width,
    "has correct area");

expect(myRect, hasCorrectArea);
Source by dartdoc.takyam.com #
 
PREVIOUS NEXT
Tagged: #dart #test #matcher #expecting #field
ADD COMMENT
Topic
Name
6+8 =