1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 19:51:17 +00:00

doc: Fix test in writing-nixos-tests.section.md (#294902)

* Fix test in writing-nixos-tests.section.md

That paren couldn't possibly have been in the right place.

(I do not have nix set up to generate `writing-nixos-tests.section.xml` or verify the test or anything, please do whatever is appropriate with this trivial change)

* doc: fix numpy example test value

Making the test test the right thing made it fail

see PR discussion
This commit is contained in:
Anton Dyudin 2024-03-12 19:19:54 -07:00 committed by GitHub
parent 455726af51
commit 811ec16c8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -261,7 +261,7 @@ added using the parameter `extraPythonPackages`. For example, you could add
testScript = '' testScript = ''
import numpy as np import numpy as np
assert str(np.zeros(4) == "array([0., 0., 0., 0.])") assert str(np.zeros(4)) == "[0. 0. 0. 0.]"
''; '';
} }
``` ```