unit testing - Why there is no `expectAsync3` in dart's unittest? -


i see there expectasync0, expectasync1, expectasync2 provided dart's unittest library, no expectasync3, expectasync4, ...

what if want test function has 3 parameters?

myadd(int x, int y, int z) { return x+y+z; } 

i expect write:

var fun = expectasync3(myadd); 

but can't find such method.

as günter zöchbauer said: there wasn't demand it.

in meantime can work around it:

var done = expectasync0(() {}); var fun = (x, y, z) { done(); return myadd(x, y, z); }; 

Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -