Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
hdygxsj committed Jan 26, 2025
1 parent bfe1532 commit c86e7e7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,33 +314,33 @@ public void testCreateTableWithPrimaryKey() {
Index index = table.index()[0];
Assertions.assertEquals("aa", index.fieldNames()[0][0]);
Assertions.assertEquals("bb", index.fieldNames()[1][0]);

TestUtils.assertTableResult(
sql("INSERT INTO %s VALUES(1,2,3)", tableName),
ResultKind.SUCCESS_WITH_CONTENT,
Row.of(-1));

TestUtils.assertTableResult(
sql("SELECT count(*) num FROM %s", tableName),
ResultKind.SUCCESS_WITH_CONTENT,
Row.of(1));
TestUtils.assertTableResult(
sql("SELECT * FROM %s", tableName), ResultKind.SUCCESS_WITH_CONTENT, Row.of(1, 2, 3));

TestUtils.assertTableResult(
sql("INSERT INTO %s VALUES(1,2,4)", tableName),
ResultKind.SUCCESS_WITH_CONTENT,
Row.of(-1));

TestUtils.assertTableResult(
sql("SELECT count(*) num FROM %s", tableName),
ResultKind.SUCCESS_WITH_CONTENT,
Row.of(1));
TestUtils.assertTableResult(
sql("SELECT * FROM %s", tableName), ResultKind.SUCCESS_WITH_CONTENT, Row.of(1, 2, 4));

TestUtils.assertTableResult(
sql("INSERT INTO %s VALUES(1,3,4)", tableName),
ResultKind.SUCCESS_WITH_CONTENT,
Row.of(-1));

TestUtils.assertTableResult(
sql("SELECT count(*) num FROM %s", tableName),
ResultKind.SUCCESS_WITH_CONTENT,
Expand All @@ -350,11 +350,11 @@ public void testCreateTableWithPrimaryKey() {
ResultKind.SUCCESS_WITH_CONTENT,
Row.of(1, 2, 4),
Row.of(1, 3, 4));

TestUtils.assertTableResult(
sql("INSERT INTO %s VALUES(2,2,4)", tableName),
ResultKind.SUCCESS_WITH_CONTENT,
Row.of(-1));

TestUtils.assertTableResult(
sql("SELECT count(*) num FROM %s", tableName),
ResultKind.SUCCESS_WITH_CONTENT,
Expand Down

0 comments on commit c86e7e7

Please sign in to comment.