hnix/tests/Main.hs
Profpatsch 8b4c137a3b Shorthands.hs, mkDot/mkDots: automatically quote non-symbols
Nix can accept (nearly?) arbitrary values as attributes, if they are quoted in
strings. So generating “dots” should always result in valid nix attributes.
This uses the same regex as the nix lexer (as of 1.11).

Also add a few tests whether it correctly generates symbol/non-symbol
attributes.
2017-04-21 03:54:06 +02:00

17 lines
276 B
Haskell

module Main where
import Test.Tasty
import qualified ParserTests
import qualified EvalTests
import qualified ShorthandTests
import Prelude (IO, ($))
main :: IO ()
main = defaultMain $ testGroup "hnix"
[ ParserTests.tests
, EvalTests.tests
, ShorthandTests.tests
]