diff --git a/test/built-ins/Uint8Array/fromHex/results.js b/test/built-ins/Uint8Array/fromHex/results.js index c4bf09dd336..8f8ca84b199 100644 --- a/test/built-ins/Uint8Array/fromHex/results.js +++ b/test/built-ins/Uint8Array/fromHex/results.js @@ -9,7 +9,9 @@ features: [uint8array-base64, TypedArray] var cases = [ ["", []], + ["06", [6]], ["66", [102]], + ["066f", [6, 111]], ["666f", [102, 111]], ["666F", [102, 111]], ["666f6f", [102, 111, 111]], diff --git a/test/built-ins/Uint8Array/prototype/toHex/results.js b/test/built-ins/Uint8Array/prototype/toHex/results.js index 8d0bcf4310e..a5620b8b017 100644 --- a/test/built-ins/Uint8Array/prototype/toHex/results.js +++ b/test/built-ins/Uint8Array/prototype/toHex/results.js @@ -7,7 +7,9 @@ features: [uint8array-base64, TypedArray] ---*/ assert.sameValue((new Uint8Array([])).toHex(), ""); +assert.sameValue((new Uint8Array([6])).toHex(), "06"); assert.sameValue((new Uint8Array([102])).toHex(), "66"); +assert.sameValue((new Uint8Array([6, 111])).toHex(), "066f"); assert.sameValue((new Uint8Array([102, 111])).toHex(), "666f"); assert.sameValue((new Uint8Array([102, 111, 111])).toHex(), "666f6f"); assert.sameValue((new Uint8Array([102, 111, 111, 98])).toHex(), "666f6f62");