From eba594b7a4e1776c2fb781582ae0613f9a989059 Mon Sep 17 00:00:00 2001 From: kalmar Date: Tue, 11 Jul 2017 16:18:11 +0200 Subject: [PATCH] sanity test mul!(a,a,b) == a*b --- test/runtests.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/runtests.jl b/test/runtests.jl index b40cf0b..9c78efc 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -112,6 +112,9 @@ using Nemo @test eltype(2.0*a) == typeof(2.0) @test (2.0*a).coeffs == 2.0.*(a.coeffs) + b = RG(1) + GroupRing.star(a) + @test a*b == mul!(a,a,b) + @test isa(a/2, GroupRingElem) @test eltype(a/2) == typeof(1/2) @test (a/2).coeffs == 0.5*(a.coeffs)