module nspkg import nspkg.tests.signaturefixtures import os fn test_public_api_declarations_remain_compatible() ! { output := signaturefixtures.command('v', [ 'run', os.join_path(@VMODROOT, 'tests', 'api_surface.v'), '--self-test', ])! assert output.contains('Public V API preserved: 266 functions,') } fn test_c_oracle_implementation_does_not_import_the_current_backend() ! { for name in ['alpm.v', 'list.v'] { text := os.read_file(os.join_path(@VMODROOT, 'tests', 'coracle', name))! assert !text.contains('import nspkg') assert !text.contains('engine.') } }