<commit_before>
var assert = require("assert");
var BB     = require("../lib/b_b").Bling_Bling;
var txt    = "Last weekend I\n  visited the UFO.";

describe( 'Section:', function () {

  it( 'turns sections into h3', function () {
    var p = BB.new("Section: Hello");
    assert.equal(p.to_html(), "<h3>Hello</h3>");
  });

}); // === end desc

describe( 'Paragraphs/Blocks', function () {

  it( 'turns blocks of text into div.p', function () {
    var p = BB.new("\n" + txt + "\n");
    assert.equal(p.to_html(), "<div class=\"p\">" + txt + "</div>" );
  });

}); // === end desc


describe( 'Links', function () {

  it( 'generates links from: *text* [example.com]', function () {
    var p = BB.new("\nMy link: *txt* [example.com]\n");
    assert.equal(p.to_html(), "<div class=\"p\">My link: <a href=\"http://example.com/\">txt</a></div>" );
  });

  it( 'ignores invalid links: *text* [ex.//fdf]', function () {
    var p = BB.new("\nMy link: *txt* [http://example.com/ a/]\n");
    assert.equal(p.to_html(), "<div class=\"p\">My link: <strong>txt</strong> [http://example.com/ a/]</div>" );
  });

}); // === end desc

describe( 'Combinations', function () {

  it( 'generates: section, block', function () {
    var p = BB.new("Section: Greeting\n \n" + txt + "\n");<commit_msg>Added: strong tests<commit_after>
var assert = require("assert");
var BB     = require("../lib/b_b").Bling_Bling;
var txt    = "Last weekend I\n  visited the UFO.";

describe( 'Section:', function () {

  it( 'turns sections into h3', function () {
    var p = BB.new("Section: Hello");
    assert.equal(p.to_html(), "<h3>Hello</h3>");
  });

}); // === end desc

describe( 'Paragraphs/Blocks', function () {

  it( 'turns blocks of text into div.p', function () {
    var p = BB.new("\n" + txt + "\n");
    assert.equal(p.to_html(), "<div class=\"p\">" + txt + "</div>" );
  });

}); // === end desc

describe( 'Strong', function () {

  it( 'generates strongs from: *text*', function () {
    var p = BB.new("\nMy link: *txt*\n");
    assert.equal(p.to_html(), "<div class=\"p\">My link: <strong>txt</strong></div>" );
  });

  it( 'ignores invalid strongs: **text**', function () {
    var p = BB.new("\nMy link: **txt**\n");
    assert.equal(p.to_html(), "<div class=\"p\">My link: **txt**</div>" );
  });

}); // === end desc

describe( 'Links', function () {

  it( 'generates links from: *text* [example.com]', function () {
    var p = BB.new("\nMy link: *txt* [example.com]\n");
    assert.equal(p.to_html(), "<div class=\"p\">My link: <a href=\"http://example.com/\">txt</a></div>" );
  });

  it( 'ignores invalid links: *text* [ex.//fdf]', function () {
    var p = BB.new("\nMy link: *txt* [http://example.com/ a/]\n");
    assert.equal(p.to_html(), "<div class=\"p\">My link: <strong>txt</strong> [http://example.com/ a/]</div>" );
  });

}); // === end desc

describe( 'Combinations', function () {

  it( 'generates: section, block', function () {
    var p = BB.new("Section: Greeting\n \n" + txt + "\n");
{'fraction_non_alphanumeric': 0.2555666334330342, 'fraction_numerical': 0.0019940179461615153, 'mean_word_length': 3.2097902097902096, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, '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': '4077733', 'n_tokens_mistral': 1104, 'n_tokens_neox': 1087, 'n_words': 268}