mirror of
https://github.com/github/semantic.git
synced 2024-12-29 18:06:14 +03:00
Fix overloaded string warning.
This commit is contained in:
parent
02965e2edb
commit
e3a43b77a9
@ -16,7 +16,7 @@ spec :: Spec
|
|||||||
spec = parallel $ do
|
spec = parallel $ do
|
||||||
describe "interpret" $ do
|
describe "interpret" $ do
|
||||||
it "returns a replacement when comparing two unicode equivalent terms" $
|
it "returns a replacement when comparing two unicode equivalent terms" $
|
||||||
let termA = cofree $ (StringLiteral .: RNil) :< Leaf "t\776"
|
let termA = cofree $ (StringLiteral .: RNil) :< Leaf ("t\776" :: Text)
|
||||||
termB = cofree $ (StringLiteral .: RNil) :< Leaf "\7831" in
|
termB = cofree $ (StringLiteral .: RNil) :< Leaf "\7831" in
|
||||||
diffTerms (free . Free) ((==) `on` extract) diffCost termA termB `shouldBe` free (Pure (Replace termA termB))
|
diffTerms (free . Free) ((==) `on` extract) diffCost termA termB `shouldBe` free (Pure (Replace termA termB))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user