mirror of
https://github.com/flutter/flutter.git
synced 2026-02-03 17:51:05 +08:00
14 lines
486 B
Dart
14 lines
486 B
Dart
// Copyright 2017 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/physics.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
void main() {
|
|
test('gravity simulation', () {
|
|
expect(GravitySimulation(9.81, 10.0, 0.0, 0.0), hasOneLineDescription);
|
|
expect(GravitySimulation(9.81, 10.0, 0.0, 0.0).x(10.0), moreOrLessEquals(50.0 * 9.81 + 10.0));
|
|
});
|
|
}
|