groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maarten Boekhold <boekh...@gmx.com>
Subject Check if List is of specific size and elements of specific type
Date Tue, 29 Mar 2016 10:25:24 GMT
Hi,

Is there a quick and easy way to do something like:

assert listVariable == [int, int]

eg, the list is of size 2 and each element is an int?

Maarten

Mime
View raw message