import {statementType} from "../_utils";
import * as Statements from "../../../src/abap/2_statements/statements";

const tests = [
  "DO var TIMES.",
  "DO 10 TIMES.",
  "DO 10 TIMES VARYING foo FROM from NEXT next.",
  "DO 10 TIMES VARYING field FROM foo NEXT bar.",
  "DO VARYING var FROM foo NEXT bar.",
  "DO.",
  "DO 16 TIMES VARYING field1 FROM foo NEXT bar VARYING field2 FROM foo NEXT bar.",
  "do 10 times varying l_ch from l_char(1) next l_char+1(1) range l_char.",
];

statementType(tests, "DO", Statements.Do);