Search in sources :

Example 1 with UintType

use of org.projectnessie.cel.common.types.UintT.UintType in project cel-java by projectnessie.

the class TypeTest method typeConvertToType.

@Test
void typeConvertToType() {
    Type[] stdTypes = new Type[] { BoolType, BytesType, DoubleType, DurationType, IntType, ListType, MapType, NullType, StringType, TimestampType, TypeType, UintType };
    for (Type stdType : stdTypes) {
        Val cnv = stdType.convertToType(TypeType);
        assertThat(cnv).isEqualTo(TypeType);
    }
}
Also used : Val(org.projectnessie.cel.common.types.ref.Val) TypeType(org.projectnessie.cel.common.types.TypeT.TypeType) BytesType(org.projectnessie.cel.common.types.BytesT.BytesType) DoubleType(org.projectnessie.cel.common.types.DoubleT.DoubleType) DurationType(org.projectnessie.cel.common.types.DurationT.DurationType) IntType(org.projectnessie.cel.common.types.IntT.IntType) ListType(org.projectnessie.cel.common.types.ListT.ListType) StringType(org.projectnessie.cel.common.types.StringT.StringType) MapType(org.projectnessie.cel.common.types.MapT.MapType) NullType(org.projectnessie.cel.common.types.NullT.NullType) BoolType(org.projectnessie.cel.common.types.BoolT.BoolType) Type(org.projectnessie.cel.common.types.ref.Type) TimestampType(org.projectnessie.cel.common.types.TimestampT.TimestampType) UintType(org.projectnessie.cel.common.types.UintT.UintType) Test(org.junit.jupiter.api.Test)

Aggregations

Test (org.junit.jupiter.api.Test)1 BoolType (org.projectnessie.cel.common.types.BoolT.BoolType)1 BytesType (org.projectnessie.cel.common.types.BytesT.BytesType)1 DoubleType (org.projectnessie.cel.common.types.DoubleT.DoubleType)1 DurationType (org.projectnessie.cel.common.types.DurationT.DurationType)1 IntType (org.projectnessie.cel.common.types.IntT.IntType)1 ListType (org.projectnessie.cel.common.types.ListT.ListType)1 MapType (org.projectnessie.cel.common.types.MapT.MapType)1 NullType (org.projectnessie.cel.common.types.NullT.NullType)1 StringType (org.projectnessie.cel.common.types.StringT.StringType)1 TimestampType (org.projectnessie.cel.common.types.TimestampT.TimestampType)1 TypeType (org.projectnessie.cel.common.types.TypeT.TypeType)1 UintType (org.projectnessie.cel.common.types.UintT.UintType)1 Type (org.projectnessie.cel.common.types.ref.Type)1 Val (org.projectnessie.cel.common.types.ref.Val)1