<!DOCTYPE html>
<html lang="en">
<head>
  <title>Simple Heap Test</title>
  <meta charset="UTF-8">
  <script type="module">
    import {MinHeap} from "./min_heap.js"

    const n = 11;

    function newNode(x, y) {
      return {x: x, y: y};
    }

    function less(a, b) {
      const result = a.x < b.x;
      // console.log(JSON.stringify(a) + " and " + JSON.stringify(b) + ": " + result);
      return result;
    }

    function testHeap() {
      const heap = new MinHeap(less);
      let report = "";
   