test63.spec.js 391 B

1234567891011
  1. import { CompoundType } from "./../js/typeSystem/compoundType";
  2. import { Types } from "./../js/typeSystem/types";
  3. describe("A CompoundType of an Int and dimension 1", () => {
  4. it("should not accept another of same dimension", () => {
  5. const t1 = new CompoundType(Types.INTEGER, 1);
  6. const t2 = new CompoundType(Types.INTEGER, 1);
  7. expect(t1.canAccept(t2)).toBeFalsy();
  8. });
  9. });