Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 7aaa812

Browse files
update tests with console output from SQLcl 23.4.0
1 parent eb66ade commit 7aaa812

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

standalone/src/test/java/com/trivadis/plsql/formatter/sqlcl/tests/AbstractFormatTest.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ public void process_dir(final RunType runType) {
2121
2222
for r in /*(*/ select x.* from x join y on y.a = x.a)
2323
^^^
24-
25-
Expected: expr#,function,literal,factor,boolean_primary,func... skipped.
24+
Expected: constraint,'.',iterator_control_list,':','CONSTRAI
25+
... skipped.
2626
""".replace("#TEMP_DIR#", getTempDir());
2727
var actual = run(runType, getTempDir(), "mext=");
2828
assertEquals(expected, actual);
@@ -551,8 +551,8 @@ public void process_config_dir_array(final RunType runType) throws IOException {
551551
552552
for r in /*(*/ select x.* from x join y on y.a = x.a)
553553
^^^
554-
555-
Expected: expr#,function,literal,factor,boolean_primary,func... skipped.
554+
Expected: constraint,'.',iterator_control_list,':','CONSTRAI
555+
... skipped.
556556
""".replace("#TEMP_DIR#", getTempDir());
557557
var configFileContent = """
558558
[
@@ -604,23 +604,23 @@ public void process_sql_txt_force(final RunType runType) {
604604
public void process_dir_all_errors(final RunType runType) {
605605
// console output
606606
var expected = """
607-
607+
608608
Formatting file 1 of 4: #TEMP_DIR#/markdown.md... #1... done... #2... Syntax Error at line 6, column 13
609609
610610
611611
for r in /*(*/ select x.* from x join y on y.a = x.a)
612612
^^^
613-
614-
Expected: expr#,function,literal,factor,boolean_primary,func... skipped... #3... done... done.
613+
Expected: constraint,'.',iterator_control_list,':','CONSTRAI
614+
... skipped... #3... done... done.
615615
Formatting file 2 of 4: #TEMP_DIR#/package_body.pkb... done.
616616
Formatting file 3 of 4: #TEMP_DIR#/query.sql... done.
617617
Formatting file 4 of 4: #TEMP_DIR#/syntax_error.sql... Syntax Error at line 6, column 12
618618
619619
620620
for r in /*(*/ select x.* from x join y on y.a = x.a)
621621
^^^
622-
623-
Expected: expr#,function,literal,factor,boolean_primary,func... skipped.
622+
Expected: constraint,'.',iterator_control_list,':','CONSTRAI
623+
... skipped.
624624
""".replace("#TEMP_DIR#", getTempDir());
625625
var actual = run(runType, getTempDir());
626626
assertEquals(expected, actual);
@@ -635,8 +635,8 @@ public void process_dir_mext_errors(final RunType runType) {
635635
636636
for r in /*(*/ select x.* from x join y on y.a = x.a)
637637
^^^
638-
639-
Expected: expr#,function,literal,factor,boolean_primary,func... skipped... #3... done... done.
638+
Expected: constraint,'.',iterator_control_list,':','CONSTRAI
639+
... skipped... #3... done... done.
640640
Formatting file 2 of 4: #TEMP_DIR#/package_body.pkb... done.
641641
Formatting file 3 of 4: #TEMP_DIR#/query.sql... done.
642642
Formatting file 4 of 4: #TEMP_DIR#/syntax_error.sql... skipped.
@@ -657,8 +657,8 @@ public void process_dir_ext_errors(final RunType runType) {
657657
658658
for r in /*(*/ select x.* from x join y on y.a = x.a)
659659
^^^
660-
661-
Expected: expr#,function,literal,factor,boolean_primary,func... skipped.
660+
Expected: constraint,'.',iterator_control_list,':','CONSTRAI
661+
... skipped.
662662
""".replace("#TEMP_DIR#", getTempDir());
663663
var actual = run(runType, getTempDir(), "serr=ext");
664664
assertEquals(expected, actual);

0 commit comments

Comments
 (0)