blob: f8f317d2d7c51a3352890a653dba86397374b2ee [file] [log] [blame]
// Copyright 2019 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:devtools_app/src/primitives/math_utils.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
test('sum', () {
expect(sum([1.0, 2.0, 3.0]), 6.0);
});
test('minimum', () {
expect(min([1.0, 2.0, 3.0]), 1.0);
});
test('maximum', () {
expect(max([1.0, 2.0, 3.0]), 3.0);
});
}