/*
 * Copyright (c) 2017, PostgreSQL Global Development Group
 * See the LICENSE file in the project root for more information.
 */

package org.postgresql.util;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;

import org.junit.Assert;
import org.junit.jupiter.api.Test;

class PGtokenizerTest {

  @Test
  void tokenize() {
    PGtokenizer pGtokenizer = new PGtokenizer("1,2EC1830300027,1,,",',');
    assertEquals(5,pGtokenizer.getSize());
  }

  @Test
  void tokenize2() {
    PGtokenizer pGtokenizer = new PGtokenizer(",,d,\"f(10\",\"(mime,pdf,pdf)\",test,2018-10-11,1010", ',');
    assertEquals(8,pGtokenizer.getSize());
  }

  @Test
  void tokenize3() {
    PGtokenizer pGtokenizer = new PGtokenizer(",,d,\"f)10\",\"(mime,pdf,pdf)\",test,2018-10-11,1010", ',');
    assertEquals(8,pGtokenizer.getSize());
  }

  @Test
  void tokenize4() {
    PGtokenizer pGtokenizer = new PGtokenizer(",,d,\"f()10\",\"(mime,pdf,pdf)\",test,2018-10-11,1010", ',');
    assertEquals(8,pGtokenizer.getSize());
  }

  @Test
  void removePara() {
    String string = PGtokenizer.removePara("(1,2EC1830300027,1,,)");
    Assert.assertEquals("1,2EC1830300027,1,,", string);
  }

  @Test
  void removeBox() {
    assertTrue(true);
  }

  @Test
  void removeAngle() {
    assertTrue(true);
  }

  @Test
  void removeCurlyBrace() {
    assertTrue(true);
  }
}

@@ -220,67 +220,8 @@
 als;
-%0Aimport static org.junit.jupiter.api.Assertions.assertTrue;
 %0A%0Aim
@@ -1174,182 +1174,6 @@
  %7D%0A%0A
-  @Test%0A  void removeBox() %7B%0A    assertTrue(true);%0A  %7D%0A%0A  @Test%0A  void removeAngle() %7B%0A    assertTrue(true);%0A  %7D%0A%0A  @Test%0A  void removeCurlyBrace() %7B%0A    assertTrue(true);%0A  %7D%0A
 %7D%0A

remove unused tests (#2295)