mirror of
https://github.com/flutter/samples.git
synced 2026-03-24 13:22:01 +00:00
Remove use of random numbers (#539)
This commit is contained in:
committed by
GitHub
parent
60691d00c0
commit
e04f686eb2
@@ -2,7 +2,6 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'dart:math';
|
||||
import 'package:test/test.dart';
|
||||
import 'package:testing_app/models/favorites.dart';
|
||||
|
||||
@@ -13,7 +12,7 @@ void main() {
|
||||
|
||||
test('A new item should be added', () {
|
||||
// Generate a random number.
|
||||
var number = Random().nextInt(50);
|
||||
var number = 35;
|
||||
|
||||
// Add the number to the list.
|
||||
favorites.add(number);
|
||||
@@ -24,7 +23,7 @@ void main() {
|
||||
|
||||
test('An item should be removed', () {
|
||||
// Generate a random number.
|
||||
var number = Random().nextInt(50);
|
||||
var number = 45;
|
||||
|
||||
// Add the number to the list.
|
||||
favorites.add(number);
|
||||
|
||||
Reference in New Issue
Block a user