# Failing-before transcript — same-library internal calls against HEAD b2f2012f
# command: PYTHONPATH=<src copy with HEAD compiler.py> .venv/bin/python -m pytest tests/test_compiler_library_inline.py -q --tb=line -k 'internal or unreachable or recursive or unknown or duplicate or bare or helper_and_method'
# 12 selected tests: 9 failed, 3 passed.
# Passed before: unknown callee (already fail-closed), unreachable helper (inert),
#   bare reference (already rejected as 'uses unsupported name helper').
# The duplicate and helper/method shapes failed closed at HEAD with 'calls unsupported
#   function ...'; the tests pin the stricter exported-overload message. bare_builtin
#   is a latent validator bug (allowed bare builtins were rejected as free names).

FFF.F.FFFF.F                                                             [100%]
=================================== FAILURES ===================================
E   AssertionError: Compile Error: CompileEmitError: library function add calls unsupported function helper; use mode=interpret or auto
    assert 'error' not in {'error': 'Compile Error: CompileEmitError: library function add calls unsupported function helper; use mode=interpret or auto', 'error_kind': 'compile', 'error_type': 'CompileEmitError', 'logs': [], ...}
/mnt/data/home/jango/Git/hoox-open-trading-stack/pynescript/tests/test_compiler_library_inline.py:141: AssertionError: Compile Error: CompileEmitError: library function add calls unsupported function helper; use mode=interpret or auto
E   AssertionError: Compile Error: CompileEmitError: library function add calls unsupported function twice; use mode=interpret or auto
    assert 'error' not in {'error': 'Compile Error: CompileEmitError: library function add calls unsupported function twice; use mode=interpret or auto', 'error_kind': 'compile', 'error_type': 'CompileEmitError', 'logs': [], ...}
/mnt/data/home/jango/Git/hoox-open-trading-stack/pynescript/tests/test_compiler_library_inline.py:178: AssertionError: Compile Error: CompileEmitError: library function add calls unsupported function twice; use mode=interpret or auto
E   AssertionError: Compile Error: CompileEmitError: library function add calls unsupported function helper; use mode=interpret or auto
    assert 'error' not in {'error': 'Compile Error: CompileEmitError: library function add calls unsupported function helper; use mode=interpret or auto', 'error_kind': 'compile', 'error_type': 'CompileEmitError', 'logs': [], ...}
/mnt/data/home/jango/Git/hoox-open-trading-stack/pynescript/tests/test_compiler_library_inline.py:201: AssertionError: Compile Error: CompileEmitError: library function add calls unsupported function helper; use mode=interpret or auto
E   AssertionError: assert 'recursive library function loop' in 'compile error: compileemiterror: library function add calls unsupported function loop; use mode=interpret or auto'
     +  where 'compile error: compileemiterror: library function add calls unsupported function loop; use mode=interpret or auto' = <built-in method lower of str object at 0x7f3287948710>()
     +    where <built-in method lower of str object at 0x7f3287948710> = 'Compile Error: CompileEmitError: library function add calls unsupported function loop; use mode=interpret or auto'.lower
     +      where 'Compile Error: CompileEmitError: library function add calls unsupported function loop; use mode=interpret or auto' = str(('Compile Error: CompileEmitError: library function add calls unsupported function loop; use mode=interpret or auto'))
     +        where 'Compile Error: CompileEmitError: library function add calls unsupported function loop; use mode=interpret or auto' = <built-in method get of dict object at 0x7f3287915080>('error')
     +          where <built-in method get of dict object at 0x7f3287915080> = {'error': 'Compile Error: CompileEmitError: library function add calls unsupported function loop; use mode=interpret or auto', 'error_kind': 'compile', 'error_type': 'CompileEmitError', 'logs': [], ...}.get
/mnt/data/home/jango/Git/hoox-open-trading-stack/pynescript/tests/test_compiler_library_inline.py:240: AssertionError: assert 'recursive library function loop' in 'compile error: compileemiterror: library function add calls unsupported function loop; use mode=interpret or auto'
E   AssertionError: assert 'overloaded library method' in 'compile error: compileemiterror: library function add calls unsupported function helper; use mode=interpret or auto'
/mnt/data/home/jango/Git/hoox-open-trading-stack/pynescript/tests/test_compiler_library_inline.py:283: AssertionError: assert 'overloaded library method' in 'compile error: compileemiterror: library function add calls unsupported function helper; use mode=interpret or auto'
E   AssertionError: assert 'overloaded library method' in 'compile error: compileemiterror: library function add calls unsupported function dup; use mode=interpret or auto'
/mnt/data/home/jango/Git/hoox-open-trading-stack/pynescript/tests/test_compiler_library_inline.py:308: AssertionError: assert 'overloaded library method' in 'compile error: compileemiterror: library function add calls unsupported function dup; use mode=interpret or auto'
E   AssertionError: assert 'overloaded library method' in 'compile error: compileemiterror: library function add calls unsupported function helper; use mode=interpret or auto'
/mnt/data/home/jango/Git/hoox-open-trading-stack/pynescript/tests/test_compiler_library_inline.py:333: AssertionError: assert 'overloaded library method' in 'compile error: compileemiterror: library function add calls unsupported function helper; use mode=interpret or auto'
E   AssertionError: assert 'overloaded library method' in 'compile error: compileemiterror: library function add calls unsupported function helper; use mode=interpret or auto'
/mnt/data/home/jango/Git/hoox-open-trading-stack/pynescript/tests/test_compiler_library_inline.py:358: AssertionError: assert 'overloaded library method' in 'compile error: compileemiterror: library function add calls unsupported function helper; use mode=interpret or auto'
E   AssertionError: Compile Error: CompileEmitError: library function add uses unsupported name abs; use mode=interpret or auto
    assert 'error' not in {'error': 'Compile Error: CompileEmitError: library function add uses unsupported name abs; use mode=interpret or auto', 'error_kind': 'compile', 'error_type': 'CompileEmitError', 'logs': [], ...}
/mnt/data/home/jango/Git/hoox-open-trading-stack/pynescript/tests/test_compiler_library_inline.py:397: AssertionError: Compile Error: CompileEmitError: library function add uses unsupported name abs; use mode=interpret or auto
=========================== short test summary info ============================
FAILED tests/test_compiler_library_inline.py::test_library_internal_helper_inlines
FAILED tests/test_compiler_library_inline.py::test_library_internal_chain_and_exported_callee_inline
FAILED tests/test_compiler_library_inline.py::test_library_internal_helper_defaults_and_locals
FAILED tests/test_compiler_library_inline.py::test_library_recursive_helper_fails_closed
FAILED tests/test_compiler_library_inline.py::test_library_duplicate_helper_names_fail_closed
FAILED tests/test_compiler_library_inline.py::test_library_duplicate_exported_and_helper_names_fail_closed
FAILED tests/test_compiler_library_inline.py::test_library_duplicate_exported_arities_fail_closed
FAILED tests/test_compiler_library_inline.py::test_library_helper_and_method_same_name_fail_closed
FAILED tests/test_compiler_library_inline.py::test_library_bare_builtin_call_inlines
9 failed, 3 passed, 19 deselected in 1.48s
