Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions test/typed_buffers_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ main() {

testInt32x4Buffer(intSamples);

List roundedFloatSamples = floatSamples.map(roundToFloat).toList();
var roundedFloatSamples = floatSamples.map(roundToFloat).toList();
testFloatBuffer(
32, roundedFloatSamples, () => new Float32Buffer(), roundToFloat);
testFloatBuffer(64, doubleSamples, () => new Float64Buffer(), (x) => x);
Expand Down Expand Up @@ -147,7 +147,7 @@ main() {
});
}

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