import { unitFixturePRBMathSd59x18 } from "../../shared/fixtures" ; import { shouldBehaveLikeAbs } from "./pure/abs.test" ; import { shouldBehaveLikeAdd } from "./pure/add.test" ; import { shouldBehaveLikeAvg } from "./pure/avg.test" ; import { shouldBehaveLikeCeil } from "./pure/ceil.test" ; import { shouldBehaveLikeDiv } from "./pure/div.test" ; import { shouldBehaveLikeEGetter } from "./pure/e.test" ; import { shouldBehaveLikeExp } from "./pure/exp.test" ; import { shouldBehaveLikeExp2 } from "./pure/exp2.test" ; import { shouldBehaveLikeFloor } from "./pure/floor.test" ; import { shouldBehaveLikeFrac } from "./pure/frac.test" ; import { shouldBehaveLikeFromInt } from "./pure/fromInt.test" ; import { shouldBehaveLikeGm } from "./pure/gm.test" ; import { shouldBehaveLikeInv } from "./pure/inv.test" ; import { shouldBehaveLikeLn } from "./pure/ln.test" ; import { shouldBehaveLikeLog10 } from "./pure/log10.test" ; import { shouldBehaveLikeLog2 } from "./pure/log2.test" ; import { shouldBehaveLikeMul } from "./pure/mul.test" ; import { shouldBehaveLikePiGetter } from "./pure/pi.test" ; import { shouldBehaveLikePow } from "./pure/pow.test" ; import { shouldBehaveLikePowu } from "./pure/powu.test" ; import { shouldBehaveLikeScaleGetter } from "./pure/scale.test" ; import { shouldBehaveLikeSqrt } from "./pure/sqrt.test" ; import { shouldBehaveLikeSub } from "./pure/sub.test" ; import { shouldBehaveLikeToInt } from "./pure/toInt.test" ; export function unitTestPrbMathSd59x18 ( ) { describe ( "PRBMathSD59x18" , function ( ) { beforeEach ( async function ( ) { const { prbMathSd59x18 , prbMathSd59x18Typed } = await this . loadFixture ( unitFixturePRBMathSd59x18 ) ; this . contracts . prbMathSd59x18 = prbMathSd59x18 ; this . contracts . prbMathSd59x18Typed = prbMathSd59x18Typed ; } ) ; describe ( "abs" , function ( ) { shouldBehaveLikeAbs ( ) ; } ) ; describe ( "add" , function ( ) { shouldBehaveLikeAdd ( ) ; } ) ; describe ( "avg" , function ( ) { shouldBehaveLikeAvg ( ) ; } ) ; describe ( "ceil" , function ( ) { shouldBehaveLikeCeil ( ) ; } ) ; describe ( "div" , function ( ) { shouldBehaveLikeDiv ( ) ; } ) ; describe ( "e" , function ( ) { shouldBehaveLikeEGetter ( ) ; } ) ; describe ( "exp" , function ( ) { shouldBehaveLikeExp ( ) ; } ) ; describe ( "exp2" , function ( ) { shouldBehaveLikeExp2 ( ) ; } ) ; describe ( "floor" , function ( ) { shouldBehaveLikeFloor ( ) ; } ) ; describe ( "fromInt" , function ( ) { shouldBehaveLikeFromInt ( ) ; } ) ; describe ( "frac" , function ( ) { shouldBehaveLikeFrac ( ) ; } ) ; describe ( "gm" , function ( ) { shouldBehaveLikeGm ( ) ; } ) ; describe ( "inv" , function ( ) { shouldBehaveLikeInv ( ) ; } ) ; describe ( "ln" , function ( ) { shouldBehaveLikeLn ( ) ; } ) ; describe ( "log10" , function ( ) { shouldBehaveLikeLog10 ( ) ; } ) ; describe ( "log2" , function ( ) { shouldBehaveLikeLog2 ( ) ; } ) ; describe ( "mul" , function ( ) { shouldBehaveLikeMul ( ) ; } ) ; describe ( "pi" , function ( ) { shouldBehaveLikePiGetter ( ) ; } ) ; describe ( "pow" , function ( ) { shouldBehaveLikePow ( ) ; } ) ; describe ( "powu" , function ( ) { shouldBehaveLikePowu ( ) ; } ) ; describe ( "scale" , function ( ) { shouldBehaveLikeScaleGetter ( ) ; } ) ; describe ( "sqrt" , function ( ) { shouldBehaveLikeSqrt ( ) ; } ) ; describe ( "sub" , function ( ) { shouldBehaveLikeSub ( ) ; } ) ; describe ( "toInt" , function ( ) { shouldBehaveLikeToInt ( ) ; } ) ; } ) ; }