Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kim-em committed Nov 4, 2024
1 parent aa7c2b0 commit 5ee6767
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions ImportGraphTest/Imports.lean
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,7 @@ elab "#unused_transitive_imports" names:ident* : command => do
if !u.isEmpty then
logInfo <| s!"Transitively unused imports of {n}:\n{"\n".intercalate (u.map (fun i => s!" {i}"))}"

-- This test case can be removed after nightly-2024-10-24, because these imports have been cleaned up.
-- It should be replaced with another test case!
/--
info: Transitively unused imports of Init.Control.StateRef:
Init.System.IO
---
info: Transitively unused imports of Init.System.IO:
Init.Control.Reader
-/
Expand All @@ -55,14 +50,6 @@ info: Transitively unused imports of ImportGraphTest.Used:
#guard_msgs in
#unused_transitive_imports ImportGraphTest.Used ImportGraphTest.Unused Init.Control.Reader

-- This is a spurious unused transitive import, because it relies on notation from `Init.Core`.
/--
info: Transitively unused imports of Init.Control.Basic:
Init.Core
-/
#guard_msgs in
#unused_transitive_imports Init.Control.Basic Init.Core

elab "#transitivelyRequiredModules_test" : command => do
let env ← getEnv
let unused ← liftCoreM <| env.transitivelyRequiredModules `ImportGraph.RequiredModules
Expand Down

0 comments on commit 5ee6767

Please sign in to comment.