Commit eedbb4f1 authored by Chinmay Garde's avatar Chinmay Garde

Add a simple test for the toString() override so that the coverage

tool is not sad
parent d8d07a31
......@@ -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);
});
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment