mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Add a simple test for the toString() override so that the coverage
tool is not sad
This commit is contained in:
parent
d8d07a31dd
commit
eedbb4f167
@ -490,4 +490,15 @@ void main() {
|
||||
expect(mid.value, 300.0);
|
||||
expect(right.value, 600.0);
|
||||
});
|
||||
|
||||
test('test_description', () {
|
||||
var left = new Param(0.0);
|
||||
var right = new Param(100.0);
|
||||
var c = right >= left;
|
||||
|
||||
Solver s = new Solver();
|
||||
expect(s.addConstraint(c), Result.success);
|
||||
|
||||
expect(s.toString() != null, true);
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user