MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / test_scientific_numbers

Function test_scientific_numbers

tests/test_general.py:1632–1642  ·  view source on GitHub ↗

This is #3381.

()

Source from the content-addressed store, hash-verified

1630 assert document.metadata == v
1631
1632def test_scientific_numbers():
1633 '''
1634 This is #3381.
1635 '''
1636 doc = pymupdf.open()
1637 page = doc.new_page(width=595, height=842)
1638 point = pymupdf.Point(1e-11, -1e-10)
1639 page.insert_text(point, "Test")
1640 contents = page.read_contents()
1641 print(f'{contents=}')
1642 assert b" 1e-" not in contents
1643
1644def test_3615():
1645 print('')

Callers

nothing calls this directly

Calls 3

new_pageMethod · 0.80
read_contentsMethod · 0.80
insert_textMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…