Skip to content

Commit

Permalink
[Examples] Add Logging Examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jtenner committed Jul 9, 2019
1 parent 49c9220 commit b0e6e5f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions init/example.spec.ts
Expand Up @@ -32,4 +32,12 @@ describe("example", () => {
expect<i32>(1000).toBeGreaterThanOrEqual(1000);
expect<i32>(1000).toBeLessThanOrEqual(1000);
});

it("can log some values to the console", () => {
log<string>("Hello world!"); // strings!
log<f64>(3.1415); // floats!
log<u8>(244); // integers!
log<u64>(0xFFFFFFFF); // long values!
log<ArrayBuffer>(new ArrayBuffer(50)); // bytes!
});
});

0 comments on commit b0e6e5f

Please sign in to comment.