<commit_before>// Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.


#library('logging_test');

// TODO(rnystrom): Use "package:" import when test.dart supports it (#4968).
#import('../lib/logging.dart');
#import('../../../pkg/unittest/lib/unittest.dart');

main() {
  test('level comparison is a valid comparator', () {
    var level1 = const Level('NOT_REAL1', 253);
    expect(level1 == level1);
    expect(level1 <= level1);
    expect(level1 >= level1);
    expect(level1 < level1, isFalse);
    expect(level1 > level1, isFalse);

    var level2 = const Level('NOT_REAL2', 455);
    expect(level1 <= level2);
    expect(level1 < level2);
    expect(level2 >= level1);
    expect(level2 > level1);

    var level3 = const Level('NOT_REAL3', 253);<commit_msg>revert 1204. Will investigate when I get a chance. TBR=rnystrom Review URL: https://codereview.chromium.org//10928216<commit_after>// Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.


#library('logging_test');

// TODO(rnystrom): Use "package:" import when test.dart supports it (#4968).
#import('../lib/logging.dart');
#import('../../../pkg/unittest/unittest.dart');

main() {
  test('level comparison is a valid comparator', () {
    var level1 = const Level('NOT_REAL1', 253);
    expect(level1 == level1);
    expect(level1 <= level1);
    expect(level1 >= level1);
    expect(level1 < level1, isFalse);
    expect(level1 > level1, isFalse);

    var level2 = const Level('NOT_REAL2', 455);
    expect(level1 <= level2);
    expect(level1 < level2);
    expect(level2 >= level1);
    expect(level2 > level1);

    var level3 = const Level('NOT_REAL3', 253);
{'fraction_non_alphanumeric': 0.14856557377049182, 'fraction_numerical': 0.04815573770491803, 'mean_word_length': 3.6947115384615383, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 1, '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': '1644018', 'n_tokens_mistral': 665, 'n_tokens_neox': 612, 'n_words': 193}