Skip to content

Commit

Permalink
Some comments on deprecated tests (#6388)
Browse files Browse the repository at this point in the history
Co-authored-by: Nikolaos Bezirgiannis <bezirg@users.noreply.github.com>
  • Loading branch information
bezirg and bezirg authored Aug 7, 2024
1 parent f6ca079 commit 3d06186
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ insertBuiltin fun =
insertDenotation tr $ Denotation fun (Builtin ()) meta sch

-- | A 'DenotationContext' that consists of 'DefaultFun's.
--
-- DEPRECATED: No need to update for a new builtin.
-- Outdated, since we moved to quickcheck generators.
typedBuiltins
:: DenotationContext (Term TyName Name DefaultUni DefaultFun ())
typedBuiltins
Expand Down
2 changes: 2 additions & 0 deletions plutus-core/testlib/PlutusCore/Generators/NEAT/Term.hs
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,8 @@ instance Check (TypeG n) TermConstantG where
check _ _ = false


-- | DEPRECATED: No Need to Update for a new Builtin.
-- NEAT tests are useless for builtins, see https://github.com/IntersectMBO/plutus/issues/6075
defaultFunTypes :: Ord tyname => Map.Map (TypeG tyname) [DefaultFun]
defaultFunTypes = Map.fromList [(TyFunG (TyBuiltinG TyIntegerG) (TyFunG (TyBuiltinG TyIntegerG) (TyBuiltinG TyIntegerG))
,[AddInteger,SubtractInteger,MultiplyInteger,DivideInteger,QuotientInteger,RemainderInteger,ModInteger])
Expand Down

0 comments on commit 3d06186

Please sign in to comment.