diff options
Diffstat (limited to 'tests/test_tex_headers.py')
| -rw-r--r-- | tests/test_tex_headers.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_tex_headers.py b/tests/test_tex_headers.py index 836f55ca2..2b0af6f29 100644 --- a/tests/test_tex_headers.py +++ b/tests/test_tex_headers.py | |||
| @@ -102,6 +102,12 @@ class TestGFX10FormatMapping(unittest.TestCase): | |||
| 102 | with self.assertRaises(ValueError): | 102 | with self.assertRaises(ValueError): |
| 103 | tex_headers.dxgi_to_gfx10(99999) | 103 | tex_headers.dxgi_to_gfx10(99999) |
| 104 | 104 | ||
| 105 | def test_shared_exponent_format_is_indexed_and_sized(self): | ||
| 106 | # dds_png decodes DXGI 67; without these entries the indexer drops it and tex_export --png never sees it. | ||
| 107 | self.assertEqual(tex_headers.DXGI[67], "R9G9B9E5_SHAREDEXP") | ||
| 108 | self.assertEqual(tex_headers.FMT_INFO[67], (4, 1)) | ||
| 109 | self.assertEqual(tex_headers.calc_mip_level_bytes(3, 2, fmt=67), 24) | ||
| 110 | |||
| 105 | def test_dxgi_dict_integrity(self): | 111 | def test_dxgi_dict_integrity(self): |
| 106 | for dxgi_id, name in tex_headers.DXGI.items(): | 112 | for dxgi_id, name in tex_headers.DXGI.items(): |
| 107 | self.assertIsInstance(dxgi_id, int) | 113 | self.assertIsInstance(dxgi_id, int) |