@@ -33,8 +33,8 @@ import Data.Greskell.Graph (AEdge (..), AProperty (..),
3333 (=:) )
3434import Data.Greskell.GraphSON (FromGraphSON , GValue , nonTypedGValue ,
3535 parseEither )
36- import Data.Greskell.Gremlin (Order , P , Predicate (.. ), cCompare , oDecr ,
37- oIncr , pAnd , pEq , pGte , pLt , pNot , pTest )
36+ import Data.Greskell.Gremlin (Order , P , Predicate (.. ), cCompare , oAsc , oDesc ,
37+ pAnd , pEq , pGte , pLt , pNot , pTest )
3838import Data.Greskell.Greskell (Greskell , ToGreskell (.. ), false , gvalueInt ,
3939 list , number , single , toGremlin , toGreskell ,
4040 true , unsafeGreskell , unsafeMethodCall , value )
@@ -158,16 +158,16 @@ checkOne input expected = checkRaw input [expected]
158158
159159spec_comparator :: SpecWith (String ,Int )
160160spec_comparator = do
161- let oIncr ' :: Greskell (Order Int )
162- oIncr ' = oIncr
163- oDecr ' :: Greskell (Order Int )
164- oDecr ' = oDecr
165- checkOne (cCompare oIncr ' 20 20 ) 0
166- checkOne (cCompare oIncr ' 10 20 ) (- 1 )
167- checkOne (cCompare oIncr ' 20 10 ) 1
168- checkOne (cCompare oDecr ' 20 20 ) 0
169- checkOne (cCompare oDecr ' 10 20 ) 1
170- checkOne (cCompare oDecr ' 20 10 ) (- 1 )
161+ let oAsc ' :: Greskell (Order Int )
162+ oAsc ' = oAsc
163+ oDesc ' :: Greskell (Order Int )
164+ oDesc ' = oDesc
165+ checkOne (cCompare oAsc ' 20 20 ) 0
166+ checkOne (cCompare oAsc ' 10 20 ) (- 1 )
167+ checkOne (cCompare oAsc ' 20 10 ) 1
168+ checkOne (cCompare oDesc ' 20 20 ) 0
169+ checkOne (cCompare oDesc ' 10 20 ) 1
170+ checkOne (cCompare oDesc ' 20 10 ) (- 1 )
171171
172172spec_predicate :: SpecWith (String ,Int )
173173spec_predicate = do
0 commit comments