<commit_before>goog.provide('ol.test.structs.PriorityQueue');

goog.require('ol.structs.PriorityQueue');


describe('ol.structs.PriorityQueue', function() {

  var identity = function(a) {
    return a;
  };

  describe('when empty', function() {

    var pq, origAssert;
    beforeEach(function() {
      origAssert = console.assert;
      console.assert = function(assertion, message) {
        if (!assertion) {
          throw new Error(message);
        }
      };
      pq = new ol.structs.PriorityQueue(
          identity, identity);
    });
    afterEach(function() {
      console.assert = origAssert;
    });<commit_msg>Remove console.assert in ol.structs.PriorityQueue tests<commit_after>goog.provide('ol.test.structs.PriorityQueue');

goog.require('ol.structs.PriorityQueue');


describe('ol.structs.PriorityQueue', function() {

  var identity = function(a) {
    return a;
  };

  describe('when empty', function() {

    var pq;
    beforeEach(function() {
      pq = new ol.structs.PriorityQueue(identity, identity);
    });
{'fraction_non_alphanumeric': 0.1431316042267051, 'fraction_numerical': 0.0, 'mean_word_length': 3.253061224489796, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7238329', 'n_tokens_mistral': 327, 'n_tokens_neox': 308, 'n_words': 57}