Skip to content

Instantly share code, notes, and snippets.

@jtenner
Created May 22, 2019 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtenner/8da6660597be76c0f51e1c7ea966e306 to your computer and use it in GitHub Desktop.
Save jtenner/8da6660597be76c0f51e1c7ea966e306 to your computer and use it in GitHub Desktop.
class Vec3 {
x: f64 = 0;
y: f64 = 0;
z: f64 = 0;
}
describe("Vec3", (): void => {
it("should add up", (): void => {
expect<i32>(19 + 23).toBe(42);
});
it("should match itself", (): void => {
const a = new Vec3();
expect<Vec3>(a).toBe(a, "a should be a"); // this reference is the same reference
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment