import check from './support/check';

describe('of operator', () => {
  it('turns into an `in` operator', () => {
    check(`
      a of b
    `, `
      a in b;
    `);
  });

  it('works in an expression context', () => {
    check(`
      a(b, c.d of e)
    `, `
      a(b, c.d in e);
    `);
  });

  it('works with negated `of`', () => {
    check(`
      a not of b
    `, `
      !(a in b);
    `);
  });
});

@@ -404,13 +404,160 @@
 );%0A  %7D);
+%0A%0A  it('can be double negated', () =%3E %7B%0A    check(%60%0A      unless a not of b%0A        c%0A    %60, %60%0A      if (a in b) %7B%0A        c;%0A      %7D%0A    %60);%0A  %7D);
 %0A%7D);%0A

Add another test for double negation of `of`.