Created
May 22, 2019 18:53
-
-
Save jtenner/e9c3babeab70c011f2d0231e3336be9e to your computer and use it in GitHub Desktop.
This file contains 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 { | |
constructor( | |
public x: f64, | |
public y: f64, | |
public z: f64, | |
) {} | |
} | |
let a = new Vec3(1.0, 2.0, 3.0); | |
describe("toStrictEqual", (): void => { | |
test("two references", (): void => { | |
expect<Vec3>(a) | |
.toStrictEqual(new Vec(1.0, 2.0, 3.0), "1, 2, 3 vectors should strictly equal each other"); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment