lib: basic tests for lib.versions

This commit is contained in:
Joachim Fasting 2019-09-24 11:27:14 +02:00
parent fd3052901c
commit 2d4352b1ae
No known key found for this signature in database
GPG key ID: 5C204DF675C90294

View file

@ -102,6 +102,21 @@ runTests {
expected = [ "2001" "db8" "0" "0042" "" "8a2e" "370" "" ];
};
testSplitVersionSingle = {
expr = versions.splitVersion "1";
expected = [ "1" ];
};
testSplitVersionDouble = {
expr = versions.splitVersion "1.2";
expected = [ "1" "2" ];
};
testSplitVersionTriple = {
expr = versions.splitVersion "1.2.3";
expected = [ "1" "2" "3" ];
};
testIsStorePath = {
expr =
let goodPath =