There was an error while loading. Please reload this page.
2 parents bb97bf4 + 1546da0 commit a6d6bc4Copy full SHA for a6d6bc4
1 file changed
language-nix/test/hspec.hs
@@ -54,6 +54,10 @@ main = hspec $ do
54
it "if string contains spaces" $ stringIdentProperty $ \s ->
55
any isSpace s ==> needsQuoting s
56
it "if length is zero" $ shouldSatisfy "" needsQuoting
57
+ -- c.f. https://github.com/NixOS/cabal2nix/issues/718
58
+ it "if string contains a NUL byte" $ do
59
+ shouldSatisfy "hello\NUL world" needsQuoting
60
+ shouldSatisfy "\NUL" needsQuoting
61
62
describe "nix-instantiate" $ do
63
nixInstantiate <- runIO $ do
0 commit comments