fraction_Test.ts 475 B

12345678910111213141516
  1. /**
  2. * Created by Oliver on 16.03.2016.
  3. */
  4. import { Fraction } from "../../../src/Common/DataObjects/fraction";
  5. describe("Fraction Unit Tests:", () => {
  6. describe("Construct Fraction, check Properties", () => {
  7. let f1: Fraction = new Fraction(2, 6);
  8. it("Numerator and Denominator", (done: MochaDone) => {
  9. chai.expect(f1.Numerator).to.equal(1);
  10. chai.expect(f1.Denominator).to.equal(3);
  11. done();
  12. });
  13. });
  14. });