(c: string, bytes: number)
| 75 | } |
| 76 | |
| 77 | function repeat(c: string, bytes: number): Uint8Array { |
| 78 | assertEquals(c.length, 1); |
| 79 | const ui8 = new Uint8Array(bytes); |
| 80 | ui8.fill(c.charCodeAt(0)); |
| 81 | return ui8; |
| 82 | } |
| 83 | |
| 84 | Deno.test("Buffer", () => { |
| 85 | init(); |
no test coverage detected