diff options
author | Jacob Abel <jacobabel@nullpo.dev> | 2022-05-23 03:39:48 -0400 |
---|---|---|
committer | Jacob Abel <jacobabel@nullpo.dev> | 2022-10-23 17:50:23 -0400 |
commit | 3d196a5f2a72595b14c439a9b4aba7737c0f1ebe (patch) | |
tree | 48c839f091c9f1c56ad2bc041150201b87a3c64c /lib/tests/modules.sh | |
parent | febff1dccd2c173472fe4a6bed2e620429c5b1ba (diff) | |
download | nixlib-3d196a5f2a72595b14c439a9b4aba7737c0f1ebe.tar nixlib-3d196a5f2a72595b14c439a9b4aba7737c0f1ebe.tar.gz nixlib-3d196a5f2a72595b14c439a9b4aba7737c0f1ebe.tar.bz2 nixlib-3d196a5f2a72595b14c439a9b4aba7737c0f1ebe.tar.lz nixlib-3d196a5f2a72595b14c439a9b4aba7737c0f1ebe.tar.xz nixlib-3d196a5f2a72595b14c439a9b4aba7737c0f1ebe.tar.zst nixlib-3d196a5f2a72595b14c439a9b4aba7737c0f1ebe.zip |
lib/strings: Update toInt to handle intermixed ws and zeros. Added tests
Diffstat (limited to 'lib/tests/modules.sh')
-rwxr-xr-x | lib/tests/modules.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tests/modules.sh b/lib/tests/modules.sh index 2be9b5835090..f6298297d136 100755 --- a/lib/tests/modules.sh +++ b/lib/tests/modules.sh @@ -162,7 +162,7 @@ checkConfigError 'A definition for option .* is not.*string or signed integer co # Check coerced value with unsound coercion checkConfigOutput '^12$' config.value ./declare-coerced-value-unsound.nix checkConfigError 'A definition for option .* is not of type .*. Definition values:\n\s*- In .*: "1000"' config.value ./declare-coerced-value-unsound.nix ./define-value-string-bigint.nix -checkConfigError 'json.exception.parse_error' config.value ./declare-coerced-value-unsound.nix ./define-value-string-arbitrary.nix +checkConfigError 'Could not convert .* to int.' config.value ./declare-coerced-value-unsound.nix ./define-value-string-arbitrary.nix # Check mkAliasOptionModule. checkConfigOutput '^true$' config.enable ./alias-with-priority.nix |