Watch This Video
-----------------------------------------------------------------------------------------------------------------------------// 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.