<commit_before>// Copyright (c) 2017 <NAME> <<EMAIL>>. All rights reserved.

#include "buffer.h"
#include "testkit.h"

TEST(kl::Buffer, Constructor, 1024) { ASSERT(Cap() == 1024); }

TEST(kl::Buffer, ExtendTo) {
  int cap = Cap();
  ExtendTo(2 * cap);
  ASSERT(Cap() == 2 * cap);
}

int main() {
  kl::test::RunAllTests();
  return 0;
}<commit_msg>add more tests<commit_after>// Copyright (c) 2017 <NAME> <<EMAIL>>. All rights reserved.

#include "buffer.h"
#include "testkit.h"

TEST(kl::Buffer, Constructor, 1024) { ASSERT(Cap() == 1024); }

TEST(kl::Buffer, ExtendTo) {
  int cap = Cap();
  ExtendTo(2 * cap);
  ASSERT(Cap() == 2 * cap);
  ExtendTo(cap);
  ASSERT(Cap() == 2 * cap);
}

int main() {
  kl::test::RunAllTests();
  return 0;
}
{'fraction_non_alphanumeric': 0.21159029649595687, 'fraction_numerical': 0.04177897574123989, 'mean_word_length': 4.345323741007194, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6366029', 'n_tokens_mistral': 315, 'n_tokens_neox': 284, 'n_words': 72}