<commit_before>#include <cxxtest/TestSuite.h>

#include "code/tests/ValueTraits.h"


class SString : public CxxTest::TestSuite
{

 public:
  void setUp(){
    freopen("code/tests/output/SString.out", "w", stderr);
  }

  void testLowerUpper(){
    sstring foo="LOREM IpSum dolor SIT aMeT";
    
    TS_ASSERT_EQUALS(foo.lower(), "lorem ipsum dolor sit amet");
    TS_ASSERT_EQUALS(foo.upper(), "LOREM IPSUM DOLOR SIT AMET");

  }

  void testRange(){
    sstring foo;
    TS_ASSERT_THROWS(foo[0]='x', std::out_of_range const&);
  }
};<commit_msg>removed squelching stderr in tests<commit_after>#include <cxxtest/TestSuite.h>

#include "code/tests/ValueTraits.h"


class SString : public CxxTest::TestSuite
{

 public:
  void testLowerUpper(){
    sstring foo="LOREM IpSum dolor SIT aMeT";
    
    TS_ASSERT_EQUALS(foo.lower(), "lorem ipsum dolor sit amet");
    TS_ASSERT_EQUALS(foo.upper(), "LOREM IPSUM DOLOR SIT AMET");

  }

  void testRange(){
    sstring foo;
    TS_ASSERT_THROWS(foo[0]='x', std::out_of_range const&);
  }
};
{'fraction_non_alphanumeric': 0.1403678606001936, 'fraction_numerical': 0.001936108422071636, 'mean_word_length': 4.222222222222222, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 2, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3275449', 'n_tokens_mistral': 418, 'n_tokens_neox': 403, 'n_words': 81}