diff --git a/lib/src/test/java/thriftlabs/thriftfmt/PureThriftFormatterTest.java b/lib/src/test/java/thriftlabs/thriftfmt/PureThriftFormatterTest.java index 1ac4697..1887c67 100644 --- a/lib/src/test/java/thriftlabs/thriftfmt/PureThriftFormatterTest.java +++ b/lib/src/test/java/thriftlabs/thriftfmt/PureThriftFormatterTest.java @@ -71,14 +71,14 @@ public void testFormatterFile(String fileName) { @Test public void TestConstList() { - var thrift = "struct OptionalSetDefaultTest {\n" + // - " 1: optional set with_default = [ \"test\", \"hello\", ],\n" + // + var thrift = "struct OptionalSetDefaultTest {\n" + + " 1: optional set with_default = [ \"test\", \"hello\", ],\n" + "}"; Thrift.ParserResult result = Thrift.parse(thrift); var formatter = new PureThriftFormatter(); var content = formatter.formatNode(result.document); - var expect = "struct OptionalSetDefaultTest {\n" + // - " 1: optional set with_default = [ \"test\", \"hello\", ],\n" + // + var expect = "struct OptionalSetDefaultTest {\n" + + " 1: optional set with_default = [ \"test\", \"hello\", ],\n" + "}"; assertEquals(expect, content); } diff --git a/lib/src/test/java/thriftlabs/thriftfmt/integration/ThriftFormatterTest.java b/lib/src/test/java/thriftlabs/thriftfmt/integration/ThriftFormatterTest.java index 84d5365..ec33d2b 100644 --- a/lib/src/test/java/thriftlabs/thriftfmt/integration/ThriftFormatterTest.java +++ b/lib/src/test/java/thriftlabs/thriftfmt/integration/ThriftFormatterTest.java @@ -171,7 +171,7 @@ public void TestConstList() { var newContent = formatter.format(); var expect = "struct OptionalSetDefaultTest {\n" + // - " 1: optional set with_default = [ \"test\", \"hello\" ],\n" + // + " 1: optional set with_default = [ \"test\", \"hello\", ],\n" + // "}"; assertEquals(expect, newContent); }