Created
May 22, 2019 18:19
-
-
Save jtenner/8da6660597be76c0f51e1c7ea966e306 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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