Skip to content

Commit d3e3823

Browse files
Adjusted sequence output to produce parens for an empty sequence.
1 parent ffcad09 commit d3e3823

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.lycheeignore

+3-2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ https://www.antlr.org/antlr4-runtime/
2727
http://www.eclipse.org/eclipselink/moxy/org.eclipse.persistence.moxy
2828
http://www.eclipse.org/sisu/org.eclipse.sisu.plexus/
2929
http://www.eclipse.org/sisu/org.eclipse.sisu.inject/
30+
http://www.jdom.org/
3031
http://www.mojohaus.org/appassembler-maven-plugin/appassembler/appassembler-maven-plugin
3132
http://www.seamframework.org/Weld/cdi-api
3233
http://www.thymeleaf.org/thymeleaf-lib/thymeleaf
@@ -35,5 +36,5 @@ https://opensource.org/licenses/Apache-2.0,https://opensource.org/licenses/EPL-2
3536
# prone to long timeouts
3637
http://nexus.sonatype.org/oss-repository-hosting.html/.*
3738
https://glassfish.dev.java.net/.*
38-
39-
39+
# fix later
40+
https://github.com/metaschema-framework/liboscal-java/

core/src/main/java/gov/nist/secauto/metaschema/core/metapath/item/DefaultItemWriter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public DefaultItemWriter(@NonNull PrintWriter writer) {
2929

3030
@Override
3131
public void writeSequence(ISequence<?> sequence) {
32-
boolean wrap = sequence.size() > 1;
32+
boolean wrap = sequence.size() != 1;
3333
if (wrap) {
3434
writer.append('(');
3535
}

metaschema-cli/src/test/java/gov/nist/secauto/metaschema/cli/commands/metapath/EvaluateMetapathSubCommandTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ void test() {
3030
"3 + 4 + 5",
3131
"--show-stack-trace" };
3232
CLI.runCli(args);
33-
assertThat(logCaptor.getInfoLogs()).containsExactly("Result: 12");
33+
assertThat(logCaptor.getInfoLogs()).containsExactly("12");
3434
}
3535
}
3636

0 commit comments

Comments
 (0)