From f852a6ca8ef00099b2664bc7347602159149e4e2 Mon Sep 17 00:00:00 2001 From: kalmar Date: Tue, 11 Jul 2017 18:43:37 +0200 Subject: [PATCH] add tests for the silent failure --- test/runtests.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/runtests.jl b/test/runtests.jl index 9c78efc..36d476c 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -53,6 +53,12 @@ using Nemo B = GroupRing(F, basis, d, pm) @test A == B + g = B() + s = S[2] + g[s] = 1 + @test g == B(s) + @test g[s^2] == 0 + @test_throws KeyError g[s^10] end @testset "GroupRingElems constructors/basic manipulation" begin