nixpkgs/lib/tests
Bas van Dijk 00022fbeda lib: add the toHex and toBase utility functions
`toHex` converts the given positive integer to a string of the hexadecimal
representation of that integer. For example:

```
toHex 0 => "0"

toHex 16 => "10"

toHex 250 => "FA"
```

`toBase base i` converts the positive integer `i` to a list of it
digits in the given `base`. For example:

```
toBase 10 123 => [ 1 2 3 ]

toBase 2 6 => [ 1 1 0 ]

toBase 16 250 => [ 15 10 ]
```
2020-07-20 13:09:26 +02:00
..
modules lib/tests: Check for nested option-dependent definitions 2020-03-19 03:50:47 +01:00
check-eval.nix lib/tests: Add check-eval.nix to run simple tests. 2018-03-04 06:28:49 -05:00
maintainers.nix lib/tests: Allow overriding pkgs independent of lib being tested 2020-04-25 23:40:20 +02:00
misc.nix lib: add the toHex and toBase utility functions 2020-07-20 13:09:26 +02:00
modules.sh lib/tests/modules.sh: Don't depend on $PWD 2020-04-13 17:27:04 +02:00
release.nix lib/tests: Allow overriding pkgs independent of lib being tested 2020-04-25 23:40:20 +02:00
systems.nix lib/systems: Add Genode platform definitions 2020-03-24 20:41:21 +05:30