module tests: add tests for coercedTo
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
{ lib, ... }:
|
||||
|
||||
{
|
||||
options = {
|
||||
value = lib.mkOption {
|
||||
default = 42;
|
||||
type = lib.types.coercedTo lib.types.int builtins.toString lib.types.str;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
value = [];
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
value = "24";
|
||||
}
|
||||
Reference in New Issue
Block a user