<commit_before>var Lab = require('lab'),
    Template = require('../lib/template');

var suite   = Lab.experiment;
var before  = Lab.before;
var after   = Lab.after;
var test    = Lab.test
var assert  = Lab.assert

suite("Engine", function() {
  var template;
  before(function(done) {
    template = new Template
    done();
  });

  test('it works!!', function(done) {
    var x = template.exec([
      'html',
      '  head',
      '    title =this.title',
      '  body',
      '    p =this.text',
      '    - for (var i = 0, p; p = this.projects[i]; i++)',
      '      a href=p.url',
      '        = p.name',
      '        p =p.description',
      '    - if (!this.projects.length)',
      '      . No projects'
    ].join('\n'));
    done();
  });<commit_msg>use nested tags in template tests<commit_after>var Lab = require('lab'),
    Template = require('../lib/template');

var suite   = Lab.experiment;
var before  = Lab.before;
var after   = Lab.after;
var test    = Lab.test
var assert  = Lab.assert

suite("Engine", function() {
  var template;
  before(function(done) {
    template = new Template
    done();
  });

  test('it works!!', function(done) {
    var x = template.exec([
      'html',
      '  head: title =this.title',
      '  body',
      '    p =this.text',
      '    - for var i = 0, p; p = this.projects[i]; i++',
      '      a href=p.url',
      '        = p.name',
      '        p =p.description',
      '    - if !this.projects.length',
      '      . No projects'
    ].join('\n'));
    done();
  });
{'fraction_non_alphanumeric': 0.17898832684824903, 'fraction_numerical': 0.0012970168612191958, 'mean_word_length': 1.9559386973180077, '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': '5239916', 'n_tokens_mistral': 517, 'n_tokens_neox': 514, 'n_words': 127}