John Wiegley
c3f34e62ce
Use verbosity to control how much is displayed in error messages
2018-04-17 17:25:59 -07:00
John Wiegley
eadf714036
If MATCHING_TESTS=yes (default for Travis), compare eval tests to Nix
2018-04-13 22:34:24 -07:00
John Wiegley
58b65d2ce1
Don't evaluate to normal form by default in the top level evaluators
2018-04-13 19:29:18 -07:00
John Wiegley
9a089712aa
Create new __includes builtin, set by --include/-I
2018-04-11 22:02:31 -07:00
John Wiegley
27c3875934
Use hnix to process nixpkgs in the tests
2018-04-11 13:56:31 -07:00
John Wiegley
481d6fa9c1
Don't ignore errors when parsing nixpkgs
2018-04-10 13:17:37 -07:00
Doug Beardsley
13fc5bcd6d
Add builtins.split
...
Finishes issue #113
2018-04-10 12:33:31 -07:00
John Wiegley
6d275b6093
Make Nixpkgs parsing test also optional (for now)
2018-04-10 11:14:20 -07:00
John Wiegley
586402ad9a
Add a test for parsing all of the nixpkgs that we build with
2018-04-10 11:05:22 -07:00
John Wiegley
954ffccebb
Ensure in the tests that hnix.cabal is not edited directly
2018-04-07 12:09:49 -07:00
John Wiegley
443129315d
Use hpack and move all the Nix sources into a src/ directory
2018-04-07 12:02:33 -07:00
John Wiegley
debd240d9d
Fix to data presence check
2018-04-04 16:36:15 -07:00
John Wiegley
815748d8ac
Update error reports from hnix-tests
2018-04-04 16:33:43 -07:00
Doug Beardsley
7281a0732d
Fix issue #133
2018-04-04 16:32:21 -06:00
John Wiegley
d77e52e9d4
Don't run the language tests (say, on Travis) unless LANGUAGE_TESTS=yes
2018-03-28 16:30:54 -07:00
John Wiegley
3a29249e43
Normalize import statements, add option parsing
2018-03-27 21:59:27 -07:00
Allen Nelson
46bb504ccc
whack that mole
2018-02-28 11:45:34 -06:00
Guillaume Maudoux
25f1da3408
Run lang tests from upstream
2018-02-15 12:06:09 +01:00
Rhys
0d456691b5
Escape ${ but not plain $ in indented strings
...
Includes some very basic regression tests, but no change for
non-indented strings.
2017-05-31 21:24:43 +10:00
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
Allen Nelson
50a3d0d0db
make tests pass
2016-01-23 15:51:34 -06:00
Anders Papitto
00d7f06dd0
add some evaluation tests and fix bug
2015-12-20 22:17:34 -08:00
Benno Fünfstück
3922112bab
add a few hunit tests for parser
2014-08-03 15:56:01 +02:00