<commit_before>require "cases/helper"
require "active_model/type"

module ActiveModel
  module Type
    class UnsignedIntegerTest < ActiveModel::TestCase
      test "unsigned int max value is in range" do
        assert_equal(4294967295, UnsignedInteger.new.serialize(4294967295))
      end

      test "minus value is out of range" do
        assert_raises(::RangeError) do
          UnsignedInteger.new.serialize(-1)
        end<commit_msg>Check for the right exception<commit_after>require "cases/helper"
require "active_model/type"

module ActiveModel
  module Type
    class UnsignedIntegerTest < ActiveModel::TestCase
      test "unsigned int max value is in range" do
        assert_equal(4294967295, UnsignedInteger.new.serialize(4294967295))
      end

      test "minus value is out of range" do
        assert_raises(ActiveModel::RangeError) do
          UnsignedInteger.new.serialize(-1)
        end
{'fraction_non_alphanumeric': 0.07025246981339188, 'fraction_numerical': 0.04610318331503842, 'mean_word_length': 3.3636363636363638, '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': '250165', 'n_tokens_mistral': 279, 'n_tokens_neox': 252, 'n_words': 73}