Skip to content

Commit

Permalink
将换行符归一化,避免windows上运行单测出错的问题
Browse files Browse the repository at this point in the history
解决BigQueryResourceTest.bigquery_parse:14->SQLResourceTest.fileTest:95->SQLResourceTest.fileTest 报错的问题。
  • Loading branch information
lizongbo committed Jun 23, 2024
1 parent 903d5f3 commit e12ab33
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ protected void fileTest(File file) throws IOException {
assertEquals(2, parts.length);

String sql = parts[0].trim();
String expected = parts[1].trim();
String expected = parts[1].trim().replaceAll("\r\n","\n");

System.out.println();
System.out.println(sql);
Expand Down

0 comments on commit e12ab33

Please sign in to comment.