Remove unicode hyphens
This commit is contained in:
parent
0e8c0df425
commit
8d4093a7d4
1 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
make.typed = {
|
||||
byte: function (limit = null) {
|
||||
// [−128, 127]
|
||||
// [-128, 127]
|
||||
let value = (limit !== null) ? random.number(limit) : random.number(129)
|
||||
value = random.chance(10) ? -value : value
|
||||
return 'new Uint8Array([' + value + '])[0]'
|
||||
|
@ -15,7 +15,7 @@ make.typed = {
|
|||
return 'new Int8Array([' + value + '])[0]'
|
||||
},
|
||||
short: function (limit = null) {
|
||||
// [−32768, 32767]
|
||||
// [-32768, 32767]
|
||||
let value = (limit !== null) ? random.number(limit) : random.number(32769)
|
||||
value = random.chance(10) ? -value : value
|
||||
return 'new Int16Array([' + value + '])[0]'
|
||||
|
@ -26,7 +26,7 @@ make.typed = {
|
|||
return 'new Uint16Array([' + value + '])[0]'
|
||||
},
|
||||
long: function (limit = null) {
|
||||
// [−2147483648, 2147483647]
|
||||
// [-2147483648, 2147483647]
|
||||
let value = (limit !== null) ? random.number(limit) : random.number(2147483649)
|
||||
value = random.chance(10) ? -value : value
|
||||
return 'new Int32Array([' + value + '])[0]'
|
||||
|
|
Loading…
Reference in a new issue