File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 11{-# OPTIONS_GHC -fno-warn-name-shadowing #-}
22module ReduceExprTests (tests ) where
3- import Data.Fix
43import Test.Tasty
54import Test.Tasty.HUnit
65
7- import Nix.Atoms
86import Nix.Expr.Types
97import Nix.Expr.Types.Annotated
108import Nix.Parser
119import Nix.Reduce ( reduceExpr )
10+ import Nix.Expr.Shorthands
1211
1312
1413tests :: TestTree
@@ -46,13 +45,13 @@ selectBasic :: Result NExprLoc
4645selectBasic = parseNixTextLoc " {b=2;a=42;}.a"
4746
4847selectBasicExpect :: NExpr
49- selectBasicExpect = Fix . NConstant $ NInt 42
48+ selectBasicExpect = mkInt 42
5049
5150selectNested :: Result NExprLoc
5251selectNested = parseNixTextLoc " {a={b=2;a=42;};b={a=2;};}.a.a"
5352
5453selectNestedExpect :: NExpr
55- selectNestedExpect = Fix . NConstant $ NInt 42
54+ selectNestedExpect = mkInt 42
5655
5756selectIncorrectAttrPath :: Result NExprLoc
5857selectIncorrectAttrPath = parseNixTextLoc " {a=42;}.b"
You can’t perform that action at this time.
0 commit comments