nix-community.nixvim/tests/test-sources
Matt Sturgeon ff29c97723
modules/test: provide access to expect function
Allow `test.warnings` and `test.assertions` to be defined as either a
list, or a function coerced to a list.

When defined as a function, it is supplied an `expect` function which
provides some syntactic-sugar for defining simple expectations.

This is an alternative to the current approach of defining that `expect`
function on an ad-hoc basis.

I prefer this to adding `expect` to nixvim's lib because:
1. That would require having access to `lib`
2. IDK where in `lib` such a specialized function should live
2025-01-17 02:17:34 +00:00
..
example-configurations plugins/lsp: Use the auto-generated lsp plugin list 2024-10-08 21:29:43 +02:00
modules tests/nixpkgs: move nixpkgs module test to dedicated drv 2025-01-15 18:04:06 +00:00
plugins modules/test: provide access to expect function 2025-01-17 02:17:34 +00:00
examples.nix treewide: Reformat with nixfmt 2024-05-05 22:00:40 +02:00
extended-lib.nix lib/options: remove deprecated package option helpers 2024-09-05 02:24:52 +01:00