Check constants have constant value