Skip to content

Commit a1ff527

Browse files
authored
Fix runtime Dart 2 test errors (flutter#13)
1 parent 2d5ef0b commit a1ff527

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/typed_buffers_test.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ main() {
3030

3131
testInt32x4Buffer(intSamples);
3232

33-
List roundedFloatSamples = floatSamples.map(roundToFloat).toList();
33+
var roundedFloatSamples = floatSamples.map(roundToFloat).toList();
3434
testFloatBuffer(
3535
32, roundedFloatSamples, () => new Float32Buffer(), roundToFloat);
3636
testFloatBuffer(64, doubleSamples, () => new Float64Buffer(), (x) => x);
@@ -147,7 +147,7 @@ main() {
147147
});
148148
}
149149

150-
const List doubleSamples = const [
150+
const doubleSamples = const [
151151
0.0,
152152
5e-324, // Minimal denormal value.
153153
2.225073858507201e-308, // Maximal denormal value.
@@ -308,7 +308,8 @@ testFloat32x4Buffer(List floatSamples) {
308308
// Takes bit-size, min value, max value, function to create a buffer, and
309309
// the rounding that is applied when storing values outside the valid range
310310
// into the buffer.
311-
testFloatBuffer(int bitSize, List samples, create(), double round(double v)) {
311+
void testFloatBuffer(
312+
int bitSize, List<double> samples, create(), double round(double v)) {
312313
test("Float${bitSize}Buffer", () {
313314
var buffer = create();
314315
expect(buffer, new isInstanceOf<List<double>>());

0 commit comments

Comments
 (0)