8b4c137a3b
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.
17 lines
276 B
Haskell
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
|
|
]
|