Skip to content

Commit

Permalink
fix testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
alingse committed Dec 10, 2024
1 parent 56d9fb4 commit b79033f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ public void testFormatterFile(String fileName) {

@Test
public void TestConstList() {
var thrift = "struct OptionalSetDefaultTest {\n" + //
" 1: optional set<string> with_default = [ \"test\", \"hello\", ],\n" + //
var thrift = "struct OptionalSetDefaultTest {\n" +
" 1: optional set<string> 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<string> with_default = [ \"test\", \"hello\", ],\n" + //
var expect = "struct OptionalSetDefaultTest {\n" +
" 1: optional set<string> with_default = [ \"test\", \"hello\", ],\n" +
"}";
assertEquals(expect, content);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public void TestConstList() {
var newContent = formatter.format();

var expect = "struct OptionalSetDefaultTest {\n" + //
" 1: optional set<string> with_default = [ \"test\", \"hello\" ],\n" + //
" 1: optional set<string> with_default = [ \"test\", \"hello\", ],\n" + //
"}";
assertEquals(expect, newContent);
}
Expand Down

0 comments on commit b79033f

Please sign in to comment.