✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ beluga.o2switch.net ​🇻​♯➤ 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 185.154.139.77 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.84
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /opt/alt/python39/lib64/python3.9/test/test_json//test_float.py
import math
from test.test_json import PyTest, CTest


class TestFloat:
    def test_floats(self):
        for num in [1617161771.7650001, math.pi, math.pi**100, math.pi**-100, 3.1]:
            self.assertEqual(float(self.dumps(num)), num)
            self.assertEqual(self.loads(self.dumps(num)), num)

    def test_ints(self):
        for num in [1, 1<<32, 1<<64]:
            self.assertEqual(self.dumps(num), str(num))
            self.assertEqual(int(self.dumps(num)), num)

    def test_out_of_range(self):
        self.assertEqual(self.loads('[23456789012E666]'), [float('inf')])
        self.assertEqual(self.loads('[-23456789012E666]'), [float('-inf')])

    def test_allow_nan(self):
        for val in (float('inf'), float('-inf'), float('nan')):
            out = self.dumps([val])
            if val == val:  # inf
                self.assertEqual(self.loads(out), [val])
            else:  # nan
                res = self.loads(out)
                self.assertEqual(len(res), 1)
                self.assertNotEqual(res[0], res[0])
            self.assertRaises(ValueError, self.dumps, [val], allow_nan=False)


class TestPyFloat(TestFloat, PyTest): pass
class TestCFloat(TestFloat, CTest): pass


Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
22 Jul 2025 4.13 AM
root / linksafe
0755
__pycache__
--
22 Jul 2025 4.13 AM
root / linksafe
0755
__init__.py
2.086 KB
3 Jun 2025 6.47 PM
root / linksafe
0644
__main__.py
0.069 KB
3 Jun 2025 6.47 PM
root / linksafe
0644
test_decode.py
4.393 KB
3 Jun 2025 6.47 PM
root / linksafe
0644
test_default.py
0.283 KB
3 Jun 2025 6.47 PM
root / linksafe
0644
test_dump.py
2.353 KB
3 Jun 2025 6.47 PM
root / linksafe
0644
test_encode_basestring_ascii.py
2.213 KB
3 Jun 2025 6.47 PM
root / linksafe
0644
test_enum.py
3.939 KB
3 Jun 2025 6.47 PM
root / linksafe
0644
test_fail.py
8.829 KB
3 Jun 2025 6.47 PM
root / linksafe
0644
test_float.py
1.183 KB
3 Jun 2025 6.47 PM
root / linksafe
0644
test_indent.py
1.781 KB
3 Jun 2025 6.47 PM
root / linksafe
0644
test_pass1.py
1.794 KB
3 Jun 2025 6.47 PM
root / linksafe
0644
test_pass2.py
0.438 KB
3 Jun 2025 6.47 PM
root / linksafe
0644
test_pass3.py
0.531 KB
3 Jun 2025 6.47 PM
root / linksafe
0644
test_recursion.py
3.273 KB
3 Jun 2025 6.47 PM
root / linksafe
0644
test_scanstring.py
4.546 KB
3 Jun 2025 6.47 PM
root / linksafe
0644
test_separators.py
1.288 KB
3 Jun 2025 6.47 PM
root / linksafe
0644
test_speedups.py
3.25 KB
3 Jun 2025 6.47 PM
root / linksafe
0644
test_tool.py
7.281 KB
3 Jun 2025 6.47 PM
root / linksafe
0644
test_unicode.py
4.035 KB
3 Jun 2025 6.47 PM
root / linksafe
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF