bool assertion = false;
assert(() {assertion = true; return true;}())
return assertion;
main()
test('south > north (must throw AssertionError)', () {
bool assertionError = false;
try {
final LatLngBounds bounds = LatLngBounds(
southwest: const LatLng(30.0, 20.0),
northeast: const LatLng(-10.0, 40.0),
);
}
on AssertionError catch (e){
assertionError = true;
}
expect(assertionError, true);
});
}
--
You received this message because you are subscribed to a topic in the Google Groups "Flutter Dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/flutter-dev/fICU_VEOO7M/unsubscribe.
To unsubscribe from this group and all its topics, send an email to flutter-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.