Skip to content

Commit

Permalink
remove test duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinking committed Oct 6, 2022
1 parent 59d9902 commit 1c3819a
Showing 1 changed file with 0 additions and 14 deletions.
Expand Up @@ -322,20 +322,6 @@ public void testKeyIndexValueEntry(SessionFactoryScope scope) {
public void testAsciiChrFunctions(SessionFactoryScope scope) {
scope.inTransaction(
session -> {
session.createQuery("select function('ascii', 'x'), function('chr', 120) from EntityOfBasics w")
.list();
session.createQuery("from EntityOfBasics e where function('ascii', 'x') > 0")
.list();
session.createQuery("from EntityOfBasics e where function('chr', 120) = 'z'")
.list();

session.createQuery("select ascii('x'), chr(120) from EntityOfBasics w")
.list();
session.createQuery("from EntityOfBasics e where ascii('x') > 0")
.list();
session.createQuery("from EntityOfBasics e where chr(120) = 'z'")
.list();

assertThat( session.createQuery("select chr(65)").getSingleResult(), is('A') );
assertThat( session.createQuery("select ascii('A')").getSingleResult(), is(65) );
}
Expand Down

0 comments on commit 1c3819a

Please sign in to comment.