<commit_before><?php namespace CodeIgniter\HTTP;

class numberHelperTest extends \CIUnitTestCase
{
    public function __construct(...$params)
    {
        parent::__construct(...$params);

        helper('number');
    }

    //--------------------------------------------------------------------

    public function test_format_number()
    {
        $this->assertEquals('123,456', format_number(123456, 0, 'en_US'));
    }

    public function test_format_number_with_precision()
    {<commit_msg>Test for number_roman.<commit_after><?php namespace CodeIgniter\HTTP;

class numberHelperTest extends \CIUnitTestCase
{
    public function __construct(...$params)
    {
        parent::__construct(...$params);

        helper('number');
    }

    //--------------------------------------------------------------------

    public function test_roman_number()
    {
        $this->assertEquals('XCVI', number_to_roman(96));
        $this->assertEquals('MMDCCCXCV', number_to_roman(2895));
        $this->assertEquals('CCCXXIX', number_to_roman(329));
    }

    public function test_format_number()
    {
        $this->assertEquals('123,456', format_number(123456, 0, 'en_US'));
    }

    public function test_format_number_with_precision()
    {
{'fraction_non_alphanumeric': 0.22861710631494805, 'fraction_numerical': 0.027977617905675458, 'mean_word_length': 2.137844611528822, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '400796', 'n_tokens_mistral': 372, 'n_tokens_neox': 337, 'n_words': 55}