Adam Barth 9850fe1861 Test all but one line in animation.dart (#4751)
The one line we don't test is the private constructor for the Curves class,
which exists to ensure that no one constructs the Curves class.
2016-06-24 16:33:04 -07:00

17 lines
583 B
Dart

// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_test/flutter_test.dart';
import 'package:flutter/animation.dart';
import 'package:flutter/widgets.dart';
void main() {
test('copyWith defaults to unchanged values', () {
SpringForce force = kDefaultSpringForce.copyWith();
expect(force.spring, kDefaultSpringForce.spring);
expect(force.left, kDefaultSpringForce.left);
expect(force.right, kDefaultSpringForce.right);
});
}