From 5d7ac7e88a0df5a445318bf6d7b2d924041b204b Mon Sep 17 00:00:00 2001 From: Pieter Marsman Date: Wed, 10 Jul 2019 20:44:23 +0200 Subject: [PATCH] Added test for overflow error reported by @jtlz2: https://github.com/pdfminer/pdfminer.six/issues/177#issuecomment-510173228_ --- tests/test_encodingdb.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_encodingdb.py b/tests/test_encodingdb.py index c3f8bf0..2fac375 100644 --- a/tests/test_encodingdb.py +++ b/tests/test_encodingdb.py @@ -67,3 +67,7 @@ def test_name2unicode_notdef(): def test_name2unicode_pua_ogoneksmall(): """"Ogoneksmall" and "uniF6FB" both map to the string that corresponds to U+F6FB.""" assert u'\uF6FB' == name2unicode('Ogoneksmall') + + +def test_name2unicode_overflow_error(): + name2unicode('226215240241240240240240')