Translate

Tuesday 5 October 2021

Groovy Truth in Groovy Scripting groovy training telugu 30

 Watch This Video

https://youtu.be/bNzfxyJfaCw

-----------------------------------------------------------------------------------------------------------------------------

// Boolean

assert true

assert !false

//matcher

assert ('a'=='a')
assert !('a'=='b')

//collection

assert [1]
assert ![]

//map
assert [1:'one']
assert ![:]

//String
assert "asd"
assert !""

//Number
assert 1
assert 3.5
assert !0

//None of the above

assert new Object()
assert null





No comments:

Post a Comment

Note: only a member of this blog may post a comment.