Skip to content

Commit

Permalink
Assertions.jl moved to AA
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Sep 20, 2024
1 parent 63a4bfd commit f840cf7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Rings/AbelianClosure.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import Base: +, *, -, //, ==, zero, one, ^, div, isone, iszero,

import ..Oscar: AbstractAlgebra, add!, base_ring, base_ring_type, characteristic, elem_type, divexact, gen,
has_preimage_with_preimage, is_root_of_unity, is_unit, mul!, neg!, parent,
parent_type, promote_rule, root, root_of_unity, roots
parent_type, promote_rule, root, root_of_unity, roots, @req

using Hecke
import Hecke: conductor, data
Expand Down Expand Up @@ -774,7 +774,7 @@ AbstractAlgebra.promote_rule(::Type{QQAbFieldElem}, ::Type{QQFieldElem}) = QQAbF
###############################################################################

function Oscar.root(a::QQAbFieldElem, n::Int)
Hecke.@req is_root_of_unity(a) "Element must be a root of unity"
@req is_root_of_unity(a) "Element must be a root of unity"
o = Oscar.order(a)
l = o*n
mu = root_of_unity2(parent(a), Int(l))
Expand Down
2 changes: 1 addition & 1 deletion test/book/test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ isdefined(Main, :FakeTerminals) || include(joinpath(pkgdir(REPL),"test","FakeTer
println(" created mockrepl: $(mockrepl.mockdule)")

# clear verbosity levels before each chapter
empty!(Hecke.VERBOSE_LOOKUP)
empty!(AbstractAlgebra.VERBOSE_LOOKUP)

copy!(LOAD_PATH, custom_load_path)
auxmain = joinpath(Oscar.oscardir, "test/book", chapter, "auxiliary_code", "main.jl")
Expand Down

0 comments on commit f840cf7

Please sign in to comment.