我正在使用该unicode-show
包来进行通过 hspec 测试:
代码:
...(show . Data.List.NonEmpty.head $ infiles2, outFile2) `shouldBe` ("\"/foo/bar/baz - :.ogg\"", outFile1))...
expected: ("\"/foo/bar/baz - :.ogg\"", "/foo/bar/fee.m4a")
but got: ("\"/foo/bar/baz - \\65306.ogg\"", "/foo/bar/fee.m4a")
但随后此代码通过:
...(Text.Show.Unicode.ushow . Data.List.NonEmpty.head $ infiles2, outFile2) `shouldBe` ("\"/foo/bar/baz - :.ogg\"", outFile1))...
Test suite spec: RUNNING...
.........
Finished in 0.0115 seconds
9 examples, 0 failures, 2 pending
Test suite spec: PASS
为什么这是必要的?为什么show
这里不做正确的事情?