lib/trivial: add a few examples of usage of assertMsg/assertOneOf
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user