diff options
| author | Pablo Ladreyt <[email protected]> | 2023-01-03 05:03:05 -0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-01-03 08:03:05 +0000 |
| commit | d3229fcdf28b5a1abdbc44a7bcdde934bd472bf2 (patch) | |
| tree | cf0ac5d86fc02f564f3369f821945c6b8f036e0b /test/__snapshots__ | |
| parent | 84b3c20c7d4459e820bbce65b64201b29283b149 (diff) | |
| download | faker-d3229fcdf28b5a1abdbc44a7bcdde934bd472bf2.tar.xz faker-d3229fcdf28b5a1abdbc44a7bcdde934bd472bf2.zip | |
feat(number): add binary and octal random number generation (#1708)
Diffstat (limited to 'test/__snapshots__')
| -rw-r--r-- | test/__snapshots__/number.spec.ts.snap | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/test/__snapshots__/number.spec.ts.snap b/test/__snapshots__/number.spec.ts.snap index 29605f55..e699dc95 100644 --- a/test/__snapshots__/number.spec.ts.snap +++ b/test/__snapshots__/number.spec.ts.snap @@ -14,6 +14,12 @@ exports[`number > 42 > bigInt > with options 1`] = `1n`; exports[`number > 42 > bigInt > with string value 1`] = `37n`; +exports[`number > 42 > binary > noArgs 1`] = `"0"`; + +exports[`number > 42 > binary > with options 1`] = `"100"`; + +exports[`number > 42 > binary > with value 1`] = `"0"`; + exports[`number > 42 > float > with max 1`] = `25.84`; exports[`number > 42 > float > with min 1`] = `-25.9`; @@ -36,6 +42,12 @@ exports[`number > 42 > int > with options 1`] = `4`; exports[`number > 42 > int > with value 1`] = `0`; +exports[`number > 42 > octal > noArgs 1`] = `"2"`; + +exports[`number > 42 > octal > with options 1`] = `"4"`; + +exports[`number > 42 > octal > with value 1`] = `"0"`; + exports[`number > 1211 > bigInt > noArgs 1`] = `948721906162743n`; exports[`number > 1211 > bigInt > with big options 1`] = `22017767508700414061739128n`; @@ -50,6 +62,12 @@ exports[`number > 1211 > bigInt > with options 1`] = `10n`; exports[`number > 1211 > bigInt > with string value 1`] = `24n`; +exports[`number > 1211 > binary > noArgs 1`] = `"1"`; + +exports[`number > 1211 > binary > with options 1`] = `"1010"`; + +exports[`number > 1211 > binary > with value 1`] = `"1"`; + exports[`number > 1211 > float > with max 1`] = `64.07`; exports[`number > 1211 > float > with min 1`] = `-2.07`; @@ -72,6 +90,12 @@ exports[`number > 1211 > int > with options 1`] = `10`; exports[`number > 1211 > int > with value 1`] = `1`; +exports[`number > 1211 > octal > noArgs 1`] = `"7"`; + +exports[`number > 1211 > octal > with options 1`] = `"12"`; + +exports[`number > 1211 > octal > with value 1`] = `"1"`; + exports[`number > 1337 > bigInt > noArgs 1`] = `251225403255239n`; exports[`number > 1337 > bigInt > with big options 1`] = `31258255497061442772623668n`; @@ -86,6 +110,12 @@ exports[`number > 1337 > bigInt > with options 1`] = `-15n`; exports[`number > 1337 > bigInt > with string value 1`] = `25n`; +exports[`number > 1337 > binary > noArgs 1`] = `"0"`; + +exports[`number > 1337 > binary > with options 1`] = `"10"`; + +exports[`number > 1337 > binary > with value 1`] = `"0"`; + exports[`number > 1337 > float > with max 1`] = `18.08`; exports[`number > 1337 > float > with min 1`] = `-30.74`; @@ -107,3 +137,9 @@ exports[`number > 1337 > int > noArgs 1`] = `2360108468142080`; exports[`number > 1337 > int > with options 1`] = `2`; exports[`number > 1337 > int > with value 1`] = `0`; + +exports[`number > 1337 > octal > noArgs 1`] = `"2"`; + +exports[`number > 1337 > octal > with options 1`] = `"2"`; + +exports[`number > 1337 > octal > with value 1`] = `"0"`; |
