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

Commit 8094fee

Browse files
amend expected test results based on SQLcl 22.3.0
1 parent c56d632 commit 8094fee

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

standalone/src/test/java/com/trivadis/plsql/formatter/settings/tests/grammar/plsql/While_loop_statement.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,20 @@ public void example_14_47_tokenized() throws IOException {
5757
var actual = getFormatter().format(input);
5858
var expected = """
5959
declare
60-
done boolean := FALSE;
60+
done boolean := false;
6161
begin
6262
while done
6363
loop
6464
DBMS_OUTPUT.PUT_LINE('This line does not print.');
6565
done :=
66-
TRUE; -- This assignment is not made.
66+
true; -- This assignment is not made.
6767
end loop;
6868
6969
while not done
7070
loop
7171
DBMS_OUTPUT.PUT_LINE('Hello, world!');
7272
done :=
73-
TRUE;
73+
true;
7474
end loop;
7575
end;
7676
/

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public void process_dir(final RunType runType) {
2222
for r in /*(*/ select x.* from x join y on y.a = x.a)
2323
^^^
2424
25-
Expected: constraint,':',"aggr_name",'COUNT','-','(','JSON_T... skipped.
25+
Expected: constraint,':',"aggr_name",'COUNT','FALSE','-','('... skipped.
2626
""".replace("#TEMP_DIR#", getTempDir());
2727
var actual = run(runType, getTempDir(), "mext=");
2828
assertEquals(expected, actual);
@@ -552,7 +552,7 @@ public void process_config_dir_array(final RunType runType) throws IOException {
552552
for r in /*(*/ select x.* from x join y on y.a = x.a)
553553
^^^
554554
555-
Expected: constraint,':',"aggr_name",'COUNT','-','(','JSON_T... skipped.
555+
Expected: constraint,':',"aggr_name",'COUNT','FALSE','-','('... skipped.
556556
""".replace("#TEMP_DIR#", getTempDir());
557557
var configFileContent = """
558558
[
@@ -611,7 +611,7 @@ public void process_dir_all_errors(final RunType runType) {
611611
for r in /*(*/ select x.* from x join y on y.a = x.a)
612612
^^^
613613
614-
Expected: constraint,':',"aggr_name",'COUNT','-','(','JSON_T... skipped... #3... done... done.
614+
Expected: constraint,':',"aggr_name",'COUNT','FALSE','-','('... 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
@@ -620,7 +620,7 @@ public void process_dir_all_errors(final RunType runType) {
620620
for r in /*(*/ select x.* from x join y on y.a = x.a)
621621
^^^
622622
623-
Expected: constraint,':',"aggr_name",'COUNT','-','(','JSON_T... skipped.
623+
Expected: constraint,':',"aggr_name",'COUNT','FALSE','-','('... skipped.
624624
""".replace("#TEMP_DIR#", getTempDir());
625625
var actual = run(runType, getTempDir());
626626
assertEquals(expected, actual);
@@ -636,7 +636,7 @@ public void process_dir_mext_errors(final RunType runType) {
636636
for r in /*(*/ select x.* from x join y on y.a = x.a)
637637
^^^
638638
639-
Expected: constraint,':',"aggr_name",'COUNT','-','(','JSON_T... skipped... #3... done... done.
639+
Expected: constraint,':',"aggr_name",'COUNT','FALSE','-','('... 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.
@@ -658,7 +658,7 @@ public void process_dir_ext_errors(final RunType runType) {
658658
for r in /*(*/ select x.* from x join y on y.a = x.a)
659659
^^^
660660
661-
Expected: constraint,':',"aggr_name",'COUNT','-','(','JSON_T... skipped.
661+
Expected: constraint,':',"aggr_name",'COUNT','FALSE','-','('... skipped.
662662
""".replace("#TEMP_DIR#", getTempDir());
663663
var actual = run(runType, getTempDir(), "serr=ext");
664664
assertEquals(expected, actual);

0 commit comments

Comments
 (0)