<commit_before>require 'test_helper'

class ImageTest < ActiveSupport::TestCase

  fixtures :images

  def test_titles
    assert_equal "The%20world!.gif", images(:the_world).filename
    assert_equal "The World!", images(:the_world).title

    assert_equal "car-wallpapers19.jpg", images(:our_car).filename
    assert_equal "Car Wallpapers19", images(:our_car).title
  end

  def test_per_page
    assert_equal 18, Image.per_page(dialog = true)<commit_msg>Fix image test for new number of items<commit_after>require 'test_helper'

class ImageTest < ActiveSupport::TestCase

  fixtures :images

  def test_titles
    assert_equal "The%20world!.gif", images(:the_world).filename
    assert_equal "The World!", images(:the_world).title

    assert_equal "car-wallpapers19.jpg", images(:our_car).filename
    assert_equal "Car Wallpapers19", images(:our_car).title
  end

  def test_per_page
    assert_equal 12, Image.per_page(dialog = true)
{'fraction_non_alphanumeric': 0.10223642172523961, 'fraction_numerical': 0.01703940362087327, 'mean_word_length': 5.184210526315789, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3914710', 'n_tokens_mistral': 314, 'n_tokens_neox': 288, 'n_words': 66}