You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
435 B

2 years ago
  1. import 'package:flutter_test/flutter_test.dart';
  2. import 'package:freezed_annotation/freezed_annotation.dart';
  3. import 'package:tuple/tuple.dart';
  4. void main() {
  5. test('queue test', () {
  6. final queue = HeapPriorityQueue<Tuple2<int, int>>((a, b) => a.item1.compareTo(b.item1));
  7. queue.add(const Tuple2(5, 515));
  8. queue.add(const Tuple2(3, 245));
  9. queue.add(const Tuple2(8, 645));
  10. queue.add(const Tuple2(2, 345));
  11. });
  12. }