<commit_before>require 'teststrap'

context "udon" do
  setup do
    false
  end

  asserts "i'm a failure :(" do
    topic
  end
end<commit_msg>Some basic tests.. I think bdd might be a bit much for this.<commit_after>require 'teststrap'


context 'An udon document' do
  setup { ''.udon }
  context 'that is empty' do
    asserts_topic.equals([])
  end
  context 'with only whitespace' do
    setup {randstr(200," \t\n\r").udon}
    asserts_topic.equals([])
  end
  context 'with a single line indented block comment' do
    setup {(randstr(10,[' '])+"#"+randstr(200)).udon}
    asserts_topic.size(1)
    asserts("has one node with name that"){topic[0].name}.equals('comment')
  end
  context 'with a block comment' do
    setup do <<-UDON.udon
        # c1
          c2
         c3
      UDON
    end
    asserts_topic.size(1)
    context 'has a node' do
      setup {topic[0]}
      asserts(:name).equals('comment')
    end
  end
end
{'fraction_non_alphanumeric': 0.12166488794023479, 'fraction_numerical': 0.016008537886873, 'mean_word_length': 2.7670682730923697, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4287955', 'n_tokens_mistral': 334, 'n_tokens_neox': 322, 'n_words': 100}