Remove unicode hyphens

This commit is contained in:
pyoor 2017-06-28 14:20:45 -07:00
parent 0e8c0df425
commit 8d4093a7d4

View file

@ -4,7 +4,7 @@
make.typed = { make.typed = {
byte: function (limit = null) { byte: function (limit = null) {
// [128, 127] // [-128, 127]
let value = (limit !== null) ? random.number(limit) : random.number(129) let value = (limit !== null) ? random.number(limit) : random.number(129)
value = random.chance(10) ? -value : value value = random.chance(10) ? -value : value
return 'new Uint8Array([' + value + '])[0]' return 'new Uint8Array([' + value + '])[0]'
@ -15,7 +15,7 @@ make.typed = {
return 'new Int8Array([' + value + '])[0]' return 'new Int8Array([' + value + '])[0]'
}, },
short: function (limit = null) { short: function (limit = null) {
// [32768, 32767] // [-32768, 32767]
let value = (limit !== null) ? random.number(limit) : random.number(32769) let value = (limit !== null) ? random.number(limit) : random.number(32769)
value = random.chance(10) ? -value : value value = random.chance(10) ? -value : value
return 'new Int16Array([' + value + '])[0]' return 'new Int16Array([' + value + '])[0]'
@ -26,7 +26,7 @@ make.typed = {
return 'new Uint16Array([' + value + '])[0]' return 'new Uint16Array([' + value + '])[0]'
}, },
long: function (limit = null) { long: function (limit = null) {
// [2147483648, 2147483647] // [-2147483648, 2147483647]
let value = (limit !== null) ? random.number(limit) : random.number(2147483649) let value = (limit !== null) ? random.number(limit) : random.number(2147483649)
value = random.chance(10) ? -value : value value = random.chance(10) ? -value : value
return 'new Int32Array([' + value + '])[0]' return 'new Int32Array([' + value + '])[0]'