Files
lean4/tests/pkg/mod_clash/run_test
Garmelon 6a2a884372 chore: migrate pkg tests (#12889)
Also refactor util.sh in the process, so test scripts become easier to
write (inspired in part by lake's test suite).
2026-03-11 18:55:46 +00:00

19 lines
593 B
Bash
Executable File

#!/usr/bin/env bash
source ../../env_test.sh
# This test covers importing modules which are defined in multiple packages
# (with the same original package name).
./clean.sh
run lake resolve-deps
# Test that importing a module with multiple identical candidates works
run lake build Test.ImportSame
# Test that importing a module with multiple sufficiently similar candidates works
run lake build Test.ImportSimilar
# Test that importing a module with multiple distinct candidates fails
capture_fail lake build Test.ImportDiff
check_out_contains 'could not disambiguate the module `Diff`'