test62.spec.js 348 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 accept an int ", () => {
  5. const t1 = new CompoundType(Types.INTEGER, 1);
  6. const t2 = Types.INTEGER;
  7. expect(t1.canAccept(t2)).toBeTruthy();
  8. });
  9. });