"""Lesson fix: compare the original extension with the case-sensitive contract."""

from pathlib import Path

EXTENSIONS = {'Texture': {'.png', '.exr'}, 'StaticMesh': {'.fbx'}}


def extension_allowed(asset_type, name):
    allowed = EXTENSIONS.get(asset_type, set())
    return Path(name).suffix in allowed
