From 6c03a668f674cfe3f355a5d3677445738e3f71ca Mon Sep 17 00:00:00 2001 From: Gerwin Klein Date: Fri, 6 Jan 2023 17:35:03 +1100 Subject: [PATCH] tests: enable missed tests Looks like BUILD.bzl wasn't picked up; renamed to BUILD.bazel and fixed output drift. --- .../de/jflex/testcase/negation/{BUILD.bzl => BUILD.bazel} | 0 javatests/de/jflex/testcase/negation/negation-0.output | 2 +- javatests/de/jflex/testcase/negation/negation-1.output | 2 +- .../de/jflex/testcase/nevermatch/{BUILD.bzl => BUILD.bazel} | 0 javatests/de/jflex/testcase/nevermatch/expected_sysout.txt | 4 ++-- .../de/jflex/testcase/semcheck/{BUILD.bzl => BUILD.bazel} | 0 javatests/de/jflex/testcase/semcheck/semcheck-flex.output | 2 +- .../jflex/testcase/unused_warning/{BUILD.bzl => BUILD.bazel} | 0 .../jflex/testcase/unused_warning/expected_unused_sysout.txt | 2 +- 9 files changed, 6 insertions(+), 6 deletions(-) rename javatests/de/jflex/testcase/negation/{BUILD.bzl => BUILD.bazel} (100%) rename javatests/de/jflex/testcase/nevermatch/{BUILD.bzl => BUILD.bazel} (100%) rename javatests/de/jflex/testcase/semcheck/{BUILD.bzl => BUILD.bazel} (100%) rename javatests/de/jflex/testcase/unused_warning/{BUILD.bzl => BUILD.bazel} (100%) diff --git a/javatests/de/jflex/testcase/negation/BUILD.bzl b/javatests/de/jflex/testcase/negation/BUILD.bazel similarity index 100% rename from javatests/de/jflex/testcase/negation/BUILD.bzl rename to javatests/de/jflex/testcase/negation/BUILD.bazel diff --git a/javatests/de/jflex/testcase/negation/negation-0.output b/javatests/de/jflex/testcase/negation/negation-0.output index 4dbd6793e..2ab616e14 100644 --- a/javatests/de/jflex/testcase/negation/negation-0.output +++ b/javatests/de/jflex/testcase/negation/negation-0.output @@ -1,3 +1,3 @@ line: 1 col: 1 match: --aba\u000A-- -action [17] { /* all */ } +action [22] { /* all */ } -1 diff --git a/javatests/de/jflex/testcase/negation/negation-1.output b/javatests/de/jflex/testcase/negation/negation-1.output index 82f110ebe..45e31d29b 100644 --- a/javatests/de/jflex/testcase/negation/negation-1.output +++ b/javatests/de/jflex/testcase/negation/negation-1.output @@ -1,3 +1,3 @@ line: 1 col: 1 match: --baba-- -action [17] { /* all */ } +action [22] { /* all */ } -1 diff --git a/javatests/de/jflex/testcase/nevermatch/BUILD.bzl b/javatests/de/jflex/testcase/nevermatch/BUILD.bazel similarity index 100% rename from javatests/de/jflex/testcase/nevermatch/BUILD.bzl rename to javatests/de/jflex/testcase/nevermatch/BUILD.bazel diff --git a/javatests/de/jflex/testcase/nevermatch/expected_sysout.txt b/javatests/de/jflex/testcase/nevermatch/expected_sysout.txt index cd13adad0..691c06dec 100644 --- a/javatests/de/jflex/testcase/nevermatch/expected_sysout.txt +++ b/javatests/de/jflex/testcase/nevermatch/expected_sysout.txt @@ -3,11 +3,11 @@ Constructing NFA : 12 states in NFA Converting NFA to DFA : ..... -Warning in file "javatests/de/jflex/testcase/nevermatch/never.flex" (line 15): +Warning in file "javatests/de/jflex/testcase/nevermatch/never.flex" (line 20): Rule can never be matched: . { /* action */ } -Warning in file "javatests/de/jflex/testcase/nevermatch/never.flex" (line 21): +Warning in file "javatests/de/jflex/testcase/nevermatch/never.flex" (line 26): Rule can never be matched: <> { /* action 4 */ } 11 states before minimization, 4 states in minimized DFA diff --git a/javatests/de/jflex/testcase/semcheck/BUILD.bzl b/javatests/de/jflex/testcase/semcheck/BUILD.bazel similarity index 100% rename from javatests/de/jflex/testcase/semcheck/BUILD.bzl rename to javatests/de/jflex/testcase/semcheck/BUILD.bazel diff --git a/javatests/de/jflex/testcase/semcheck/semcheck-flex.output b/javatests/de/jflex/testcase/semcheck/semcheck-flex.output index 04f43e89e..2e51b8475 100644 --- a/javatests/de/jflex/testcase/semcheck/semcheck-flex.output +++ b/javatests/de/jflex/testcase/semcheck/semcheck-flex.output @@ -1,5 +1,5 @@ Reading "javatests/de/jflex/testcase/semcheck/semcheck.flex" -Error in file "javatests/de/jflex/testcase/semcheck/semcheck.flex" (line 12): +Error in file "javatests/de/jflex/testcase/semcheck/semcheck.flex" (line 17): Lookahead expression must have match with length of at least 1. !"foo" / "bar" { } diff --git a/javatests/de/jflex/testcase/unused_warning/BUILD.bzl b/javatests/de/jflex/testcase/unused_warning/BUILD.bazel similarity index 100% rename from javatests/de/jflex/testcase/unused_warning/BUILD.bzl rename to javatests/de/jflex/testcase/unused_warning/BUILD.bazel diff --git a/javatests/de/jflex/testcase/unused_warning/expected_unused_sysout.txt b/javatests/de/jflex/testcase/unused_warning/expected_unused_sysout.txt index 3a6ca4f36..459e3515b 100644 --- a/javatests/de/jflex/testcase/unused_warning/expected_unused_sysout.txt +++ b/javatests/de/jflex/testcase/unused_warning/expected_unused_sysout.txt @@ -1,6 +1,6 @@ Reading "javatests/de/jflex/testcase/unused_warning/unused.flex" -Warning : Macro "UNUSED" has been declared but never used. +Warning: Macro "UNUSED" has been declared but never used. Constructing NFA : 4 states in NFA Converting NFA to DFA : .