<commit_before>#include "bytecode.h"
#include "symtable.h"
#include "vm.h"
#include "timer.h"
#include "grok.h"
#include "codegen.h"

namespace test {
// test the Bytecode class
int test1() {
  Bytecode bytecode{ Instruction::LDAI, Register() };
  bytecode.print(std::cout);
  return 0;
}

int test2() {
  SymbolTable<int> table;
  table["prince"] = 322;
  table["one"] = 1;
  table["two"] = 2;
  table["three"] = 3;

  for (auto p : table) {<commit_msg>Handling tests for Lexer class<commit_after>#include "../src/bytecode.h"
#include "../src/symtable.h"
#include "../src/vm.h"
#include "../src/timer.h"
#include "../src/grok.h"
#include "../src/codegen.h"

#include "test-lexer.h"
namespace test {

// test the Bytecode class
int test1() {
  Bytecode bytecode{ Instruction::LDAI, Register() };
  bytecode.print(std::cout);
  return 0;
}

int test2() {
  SymbolTable<int> table;
  table["prince"] = 322;
  table["one"] = 1;
  table["two"] = 2;
  table["three"] = 3;

  for (auto p : table) {
{'fraction_non_alphanumeric': 0.19657258064516128, 'fraction_numerical': 0.018145161290322582, 'mean_word_length': 3.9158415841584158, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6663270', 'n_tokens_mistral': 393, 'n_tokens_neox': 378, 'n_words': 92}