Skip to content

Commit

Permalink
add regression test for updated ABAP grammar file (SAP#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgrassau committed Sep 24, 2023
1 parent b17c4b7 commit fae8e6a
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1319,4 +1319,19 @@ void testTextSymbolsWithLettersToUpper() {

testRule();
}

@Test
void testCorrespondingMappingDefault() {
// ensure DEFAULT is put to upper case, which requires a current grammar.txt PAD file

buildSrc(" FINAL(ls_a) = VALUE any_type( a = '0' ).");
buildSrc(" FINAL(ls_b) = CORRESPONDING any_type( ls_a MAPPING b = default '1' ).");

buildExp(" FINAL(ls_a) = VALUE any_type( a = '0' ).");
buildExp(" FINAL(ls_b) = CORRESPONDING any_type( ls_a MAPPING b = DEFAULT '1' ).");

putAnyMethodAroundSrcAndExp();

testRule();
}
}

0 comments on commit fae8e6a

Please sign in to comment.