remove test duplication

This commit is contained in:
Gavin King 2022-10-06 20:27:40 +02:00
parent 59d99025de
commit 1c3819a77b
1 changed files with 0 additions and 14 deletions

View File

@ -322,20 +322,6 @@ public class FunctionTests {
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) );
}