<commit_before>require "test_helper"

class Mathematical::MaliciousnessTest < Test::Unit::TestCase

  def test_it_does_not_error_on_unrecognized_commands
    render = Mathematical::Render.new
    output = nil
    # In C, we raise a ParseError, but Mathematical suppresses it.
    assert_nothing_raised { output = render.render('$\align$') }
    assert_equal output, '$\align$'<commit_msg>Adjust test to just check unreal commands<commit_after>require "test_helper"

class Mathematical::MaliciousnessTest < Test::Unit::TestCase

  def test_it_does_not_error_on_unrecognized_commands
    render = Mathematical::Render.new
    output = nil
    # In C, we raise a ParseError, but Mathematical suppresses it.
    assert_nothing_raised { output = render.render('$\not_real_comment$') }
{'fraction_non_alphanumeric': 0.08985879332477535, 'fraction_numerical': 0.0, 'mean_word_length': 5.341463414634147, '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': '7045315', 'n_tokens_mistral': 236, 'n_tokens_neox': 218, 'n_words': 56}