Union::smtst
Intersection::smtst
Complement::smtst
A warning message is generated because a required inequality with an empty list does not evaluate to True or False:
Union[{11, 3, 8, {}, 4, 7, 12}, SameTest -> (Abs[#1 - #2] < 2&)]This value for the SameTest option is adequate if all of the elements are integers:
Union[{11, 3, 8, 2, 4, 7, 12}, SameTest -> (Abs[#1 - #2] < 2&)]