Skip to content

Instantly share code, notes, and snippets.

@jtenner
Created May 22, 2019 18:53
Show Gist options
  • Save jtenner/e9c3babeab70c011f2d0231e3336be9e to your computer and use it in GitHub Desktop.
Save jtenner/e9c3babeab70c011f2d0231e3336be9e to your computer and use it in GitHub Desktop.
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