lib/trivial: add a few examples of usage of assertMsg/assertOneOf

This commit is contained in:
Profpatsch
2018-09-06 18:14:27 +02:00
parent 320cdecd16
commit 3e45b61a99
5 changed files with 20 additions and 10 deletions
@@ -8,7 +8,8 @@
with stdenv.lib;
assert elem fileFormat ["lowerTriangularCsv" "upperTriangularCsv" "dipha"];
assert assertOneOf "fileFormat" fileFormat
["lowerTriangularCsv" "upperTriangularCsv" "dipha"];
assert useGoogleHashmap -> sparsehash != null;
let