<commit_before>#define BOOST_TEST_MODULE HackCommandParser_test

#include <boost/regex.hpp>
#include <boost/test/unit_test.hpp>

#include "HackCommandParser.h"

using namespace Hasm;

BOOST_AUTO_TEST_SUITE(label)

BOOST_AUTO_TEST_CASE(test_isLabelCommand_valid) {
  BOOST_CHECK(HackCommandParser::isComputationCommand("(_id)"));
}

BOOST_AUTO_TEST_CASE(test_isLabelCommand_invalid) {
  BOOST_CHECK_EQUAL(HackCommandParser::isComputationCommand("(_id"), false);
}

BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE(computation)

BOOST_AUTO_TEST_CASE(test_isComputationCommand_validComp) {
  BOOST_CHECK(HackCommandParser::isComputationCommand("D+1"));
}

BOOST_AUTO_TEST_CASE(test_isComputationCommand_invalidComp) {
  BOOST_CHECK_EQUAL(HackCommandParser::isComputationCommand("D+X"), false);<commit_msg>Fix wrong parsing test<commit_after>#define BOOST_TEST_MODULE HackCommandParser_test

#include <boost/regex.hpp>
#include <boost/test/unit_test.hpp>

#include "HackCommandParser.h"

using namespace Hasm;

BOOST_AUTO_TEST_SUITE(label)

BOOST_AUTO_TEST_CASE(test_isLabelCommand_valid) {
  BOOST_CHECK(HackCommandParser::isLabelCommand("(_id)"));
}

BOOST_AUTO_TEST_CASE(test_isLabelCommand_invalid) {
  BOOST_CHECK_EQUAL(HackCommandParser::isLabelCommand("(_id"), false);
}

BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE(computation)

BOOST_AUTO_TEST_CASE(test_isComputationCommand_validComp) {
  BOOST_CHECK(HackCommandParser::isComputationCommand("D+1"));
}

BOOST_AUTO_TEST_CASE(test_isComputationCommand_invalidComp) {
  BOOST_CHECK_EQUAL(HackCommandParser::isComputationCommand("D+X"), false);
{'fraction_non_alphanumeric': 0.10467289719626169, 'fraction_numerical': 0.0012461059190031153, 'mean_word_length': 13.087719298245615, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4417404', 'n_tokens_mistral': 583, 'n_tokens_neox': 569, 'n_words': 52}