<commit_before>discard """
  file: "tsplit2.nim"
  output: "true"
"""
import strutils

var s = ""
for w in split("|abc|xy|z", {'|'}):
  s.add("#")
  s.add(w)

try:
  discard "hello".split("")
  echo "false"
except ValueError:
  echo "true"

#OUT true

<commit_msg>Update unit test to handle AssertionError instead of ValueError for #5119<commit_after>discard """
  file: "tsplit2.nim"
  output: "true"
"""
import strutils

var s = ""
for w in split("|abc|xy|z", {'|'}):
  s.add("#")
  s.add(w)

try:
  discard "hello".split("")
  echo "false"
except AssertionError:
  echo "true"

#OUT true


{'fraction_non_alphanumeric': 0.19087837837837837, 'fraction_numerical': 0.010135135135135136, 'mean_word_length': 4.068376068376068, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4520279', 'n_tokens_mistral': 239, 'n_tokens_neox': 239, 'n_words': 62}