Commit graph

228 commits

Author SHA1 Message Date
gb 4baa4f7108 change Nix.NixString module to Nix.String 2018-09-23 16:03:44 -04:00
gb a57aa711df tests run 2018-09-09 11:47:04 -04:00
gb 2fadbe3090 add new nixstring version with warnings 2018-09-09 11:01:09 -04:00
John Wiegley 833851392d
Merge remote-tracking branch 'origin/master' into pending 2018-09-07 13:16:28 -07:00
John Wiegley ee8b79c176
Add an evaluation test concerning the strictness of with lookups 2018-09-07 13:14:50 -07:00
Jude Taylor 04d744bcae fix eval test 2018-09-04 16:45:45 -07:00
John Wiegley 61cc26abf6
Merge pull request #349 from obsidiansystems/master
Fix function equals test
2018-09-03 10:03:50 -07:00
John Wiegley 638c67bf3d
Merge branch 'master' into master 2018-09-02 19:15:16 -07:00
John Wiegley ed99b7ad18
Merge branch 'master' into mapattrs 2018-09-02 19:15:04 -07:00
Jörg Thalheim c890965bb4 add builtins.{bitAnd,bitOr,bitXor) 2018-08-20 17:04:55 -05:00
Matthew Bauer 10fe907c50 Add builtins.mapAttrs
Fixes #341
2018-08-09 18:23:13 -04:00
Matthew Bauer ecc8d716ef Fix function equals test
I still don’t understand what Nix is doing behind the scenes here.
This is the original test case. Apparently it only happens with let
bindings?

Fixes #340
2018-08-09 16:21:02 -04:00
John Wiegley c3e3e27ee3
Merge remote-tracking branch 'origin/master' into pending 2018-08-05 12:20:24 -04:00
John Wiegley 1af979e836
true and false shouldn't be in the reservedNames list
Fixes #343
2018-08-05 12:20:00 -04:00
John Wiegley 03efacd538
Add a commented out test for #343 2018-08-05 12:15:06 -04:00
Daniel Krol d7544f5c0d Adding tests for __overrides
* `__overrides` key isn't sticking around in the resultant attribute sets
* `inherit __overrides` blows up altogether (whereas it doesn't in nix)
2018-08-05 11:53:33 -04:00
John Wiegley 842634971e
Comment out two eval tests, to be addressed by issue #340 2018-08-05 10:53:32 -04:00
John Wiegley 7cc206a278
ALL_TESTS should also imply MATCHING_TESTS 2018-08-05 10:48:47 -04:00
John Wiegley bf8d9c177e
Add a rec set test when using pathed names 2018-08-05 10:42:55 -04:00
John Wiegley be8da6aa3c
Ensure that the nixpkgs tarball actually gets downloaded 2018-08-04 17:39:55 -04:00
John Wiegley c6718e374f
Merge remote-tracking branch 'origin/master' into pending 2018-08-04 10:54:57 -04:00
Jude Taylor b42a6e1cfd Catch InappropriateType error in pathExists 2018-08-01 20:09:26 -07:00
John Wiegley 1cf25fa26f
Merge branch 'master' into func-equal 2018-07-31 21:52:40 -04:00
Matthew Bauer bf507a5df0 Enable pretty parse tests 2018-07-31 17:55:51 -04:00
gb 9c3e5e995c update fork from master contd 2018-07-28 14:17:37 -04:00
gb ea3b675f28 update fork from master 2018-07-28 13:23:23 -04:00
Matthew Bauer 39100fa19e Fix Nixpkgs evaluation on Functions
Nix says that { f = x: x; } == { g = y: y; }. The rule says to ignore
functions when comparing attribute sets or lists. This commit follows
this rule. However, it is still true that:

(x: x) /= (y: y)

I have also added some tests that check for these cases.

Fixes #323
2018-07-25 21:00:16 -04:00
John Wiegley 9ed0597e40
Update default.nix and .cabal file 2018-07-25 11:53:48 -07:00
Félix Baylac-Jacqué e246bdd647
Add recursive NSelect reduction. 2018-06-26 10:28:33 +02:00
Félix Baylac-Jacqué 721ddd4f53
Test NSelect reduction 2018-06-25 17:19:39 +02:00
Félix Baylac-Jacqué d3cbcf791c
Builtins.div cannot divide by 0
Fixes #277.
2018-06-12 21:54:28 +02:00
Dmitry Rets 1d300ca70f Add tests for __findFile. 2018-05-21 00:29:42 +02:00
John Wiegley dd3b5e4ac6
Disable the pretty parse tests entirely for now 2018-05-14 21:22:07 -07:00
John Wiegley 471712f11f
Switch PrettyPrintTests from QuickCheck to Hedgehog
The reason being that we get better shrinking by default, and no orphan
instances.
2018-05-14 21:22:04 -07:00
Profpatsch 9724c649ce tests: add a shortcut env variable to run all tests
Instead of having to specify all env variables manually, this defaults to
running all tests.
2018-05-15 00:03:39 +02:00
Profpatsch 9cfe060a9d tests: add HPACK_TESTS to make hnix tests conditional
Otherwise requires the `hpack` executable to be in scope, which cannot be
assumed (contrary to the `nix` executable).
2018-05-14 23:56:10 +02:00
John Wiegley d805fa3627
Preserve attr name positions in attrSetAlter 2018-05-10 00:09:42 -07:00
John Wiegley 31f3dc0766
Desugar NSet binds as well as NRecSet, remove an always True parameter
Fixes #310
2018-05-09 15:03:11 -07:00
John Wiegley 37893b3522
Add a presently commented out test, to be restored when #310 is fixed 2018-05-09 14:42:21 -07:00
John Wiegley d191a7587d
Add test case_unsafegetattrpos 2018-05-09 01:43:33 -07:00
John Wiegley a03cf78ce2
Use nix-instantiate --eval --strict for comparison tests 2018-05-09 01:39:29 -07:00
John Wiegley 15baa5c8b8
Track attribute source positions in the binding, not the key name 2018-05-09 01:25:01 -07:00
John Wiegley ba0dc19d2d
Work from mightybyte: Minimize deps required, for building with GHCJS 2018-05-08 16:41:15 -07:00
gb 43c145252d NixString is in its own module hiding the constructors 2018-05-08 16:47:50 -04:00
John Wiegley 4c0d79e769
Remove an import that was causing a warning 2018-05-08 13:12:00 -07:00
John Wiegley 6770046492
During testing, set the store to the current directory 2018-05-08 12:16:13 -07:00
John Wiegley 449d6611df
Remove the Uri type, it's just sugar
Fixes #308
2018-05-08 12:15:50 -07:00
gb fbcb258eb4 Merge branch 'master' of https://github.com/haskell-nix/hnix into string_context_255 2018-05-08 14:44:47 -04:00
John Wiegley aab22fcc68
Set NIX_REMOTE for running the full language tests under Docker 2018-05-07 13:17:44 -07:00
John Wiegley e35a78f067
Always enable the Nix language tests 2018-05-07 12:45:51 -07:00