# Path: clearly/utils/safe_compiler.py
# NON_PRINTABLE_PATTERN = re.compile('[\x00-\x1f]')
# def safe_compile_text(txt: str, raises: bool = False) -> Any:
#     def _convert(node):
# def _encode_to_hex(match: Match) -> str:


import pytest
from clearly.utils.safe_compiler import CallDescriptor, safe_compile_text
    ('[None]', [None]),
    ('["1", 2, False, None]', ['1', 2, False, None]),

    # function lists
    ('list()', []),
    ('list((1,))', [1]),
    ('list(("1",))', ['1']),
    ('list((True,))', [True]),
    ('list((None,))', [None]),
    ('list(("1", 2, False, None))', ['1', 2, False, None]),
    ('list(("1", 2, False, None, ))', ['1', 2, False, None]),

    # simple sets
    ('{1,}', {1}),
    ('{1}', {1}),
    ('{"1"}', {'1'}),
    ('{True}', {True}),
    ('{None}', {None}),
    ('{"1", 2, False, None}', {'1', 2, False, None}),

    # function sets
    ('set()', set()),
    ('set((1,))', {1}),
    ('set(("1",))', {'1'}),
    ('set((True,))', {True}),
    ('set((None,))', {None}),
    ('set(("1", 2, False, None))', {'1', 2, False, None}),
    ('set(("1", 2, False, None, ))', {'1', 2, False, None}),

    # simple dicts

# Path: clearly/utils/safe_compiler.py
# NON_PRINTABLE_PATTERN = re.compile('[\x00-\x1f]')
# def safe_compile_text(txt: str, raises: bool = False) -> Any:
#     def _convert(node):
# def _encode_to_hex(match: Match) -> str:


# Path: tests/unit/utils/test_safe_compiler.py
import pytest
from clearly.utils.safe_compiler import CallDescriptor, safe_compile_text

    ('[None]', [None]),
    ('["1", 2, False, None]', ['1', 2, False, None]),

    # function lists
    ('list()', []),
    ('list((1,))', [1]),
    ('list(("1",))', ['1']),
    ('list((True,))', [True]),
    ('list((None,))', [None]),
    ('list(("1", 2, False, None))', ['1', 2, False, None]),
    ('list(("1", 2, False, None, ))', ['1', 2, False, None]),

    # simple sets
    ('{1,}', {1}),
    ('{1}', {1}),
    ('{"1"}', {'1'}),
    ('{True}', {True}),
    ('{None}', {None}),
    ('{"1", 2, False, None}', {'1', 2, False, None}),

    # function sets
    ('set()', set()),
    ('set((1,))', {1}),
    ('set(("1",))', {'1'}),
    ('set((True,))', {True}),
    ('set((None,))', {None}),
    ('set(("1", 2, False, None))', {'1', 2, False, None}),
    ('set(("1", 2, False, None, ))', {'1', 2, False, None}),

    # simple dicts

    ('{}', {}),