Skip to content

Commit

Permalink
add todos
Browse files Browse the repository at this point in the history
  • Loading branch information
bhelx committed Jul 18, 2024
1 parent 50cfad6 commit df3aecc
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions runner/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,13 @@ export function test() {
let outputS = Test.callString("reflectUtf8String", inputS)
Test.assertEqual("reflectUtf8String preserved the string", outputS, inputS)

// TODO readBuffer not a method?
// let inputB = new Uint8Array([1, 2, 3, 4, 5]).buffer
// let outputB = Test.call("reflectByteBuffer", inputB).readBuffer()
//Test.assertEqual("reflectByteBuffer preserved the buffer", outputB.byteLength, inputB.byteLength)
let inputB = (new TextEncoder()).encode(KitchenSink.aString).buffer
let outputBs = Test.call("reflectByteBuffer", inputB)
// @ts-ignore TODO fix this when new xtp-test-js is pushed
let outputB = outputBs.readBytes()

// TODO compare the bytes
Test.assertEqual("reflectByteBuffer preserved the buffer length", outputB.byteLength, inputB.byteLength)

return 0;
}

0 comments on commit df3aecc

Please sign in to comment.