Skip to content

Commit 7833014

Browse files
committed
QLS: enable supply/remaining union credits
1 parent 8a0006c commit 7833014

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

test/Test/Database/LSMTree/StateMachine.hs

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ import Data.List.NonEmpty (NonEmpty (..))
7878
import qualified Data.List.NonEmpty as NE
7979
import Data.Map.Strict (Map)
8080
import qualified Data.Map.Strict as Map
81-
import Data.Maybe (catMaybes, fromMaybe, isJust)
81+
import Data.Maybe (catMaybes, fromMaybe)
8282
import Data.Monoid (First (..))
8383
import Data.Primitive.MutVar
8484
import Data.Set (Set)
8585
import qualified Data.Set as Set
86-
import Data.Typeable (Proxy (..), Typeable, cast, eqT)
86+
import Data.Typeable (Proxy (..), Typeable, cast)
8787
import qualified Data.Vector as V
8888
import qualified Database.LSMTree as R
8989
import Database.LSMTree.Class (LookupResult (..), QueryResult (..))
@@ -1983,30 +1983,18 @@ arbitraryActionWithVars _ label ctx (ModelState st _stats) =
19831983
-- Tables not derived from unions are covered in UnitTests.
19841984
| not (null unionDescendantTableVars)
19851985
, let genErrors = pure Nothing -- TODO: generate errors
1986-
-- TODO: this is currently only enabled for the reference
1987-
-- implementation. Enable this unconditionally once table union is
1988-
-- implemented
1989-
, isJust (eqT @h @ModelIO.Table)
19901986
]
19911987
++ [ (8, fmap Some $ (Action <$> genErrors <*>) $
19921988
SupplyUnionCredits <$> genUnionDescendantTableVar <*> genUnionCredits)
19931989
-- Tables not derived from unions are covered in UnitTests.
19941990
| not (null unionDescendantTableVars)
19951991
, let genErrors = pure Nothing -- TODO: generate errors
1996-
-- TODO: this is currently only enabled for the reference
1997-
-- implementation. Enable this unconditionally once table union is
1998-
-- implemented
1999-
, isJust (eqT @h @ModelIO.Table)
20001992
]
20011993
++ [ (2, fmap Some $ (Action <$> genErrors <*>) $
20021994
SupplyPortionOfDebt <$> genUnionDescendantTableVar <*> genPortion)
20031995
-- Tables not derived from unions are covered in UnitTests.
20041996
| not (null unionDescendantTableVars)
20051997
, let genErrors = pure Nothing -- TODO: generate errors
2006-
-- TODO: this is currently only enabled for the reference
2007-
-- implementation. Enable this unconditionally once table union is
2008-
-- implemented
2009-
, isJust (eqT @h @ModelIO.Table)
20101998
]
20111999
where
20122000
-- The typical, interesting case is to supply a positive number of

0 commit comments

Comments
 (0)