Skip to content

Commit

Permalink
test-external: clear all arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
endel committed Apr 28, 2020
1 parent 7252e80 commit 5c4f58a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test-external/ArraySchemaTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,20 @@ state.arrayOfStrings.pop();

bytes = Array.from(Uint8Array.from(Buffer.from( state.encode() )));

console.log(state.arrayOfNumbers.length)
console.log(state.arrayOfSchemas.length)
console.log(state.arrayOfInt32.length)
console.log(state.arrayOfStrings.length)

console.log("ArraySchemaTypes =>");
console.log(`{ ${bytes.join(", ")} }`);

state.arrayOfSchemas = new ArraySchema();
state.arrayOfNumbers = new ArraySchema();
state.arrayOfInt32 = new ArraySchema();
state.arrayOfStrings = new ArraySchema();

bytes = Array.from(Uint8Array.from(Buffer.from( state.encode() )));

console.log("ArraySchemaTypes =>");
console.log(`{ ${bytes.join(", ")} }`);

0 comments on commit 5c4f58a

Please sign in to comment.