Write a function to convert the given decimal number to its binary equivalent.
def decimal_to_binary(n): 
    return bin(n).replace("0b","") 
<s>[INST]<<SYS>>Given a task and its code, generate test cases for the code.<</SYS>>Write a function to convert the given decimal number to its binary equivalent.
def decimal_to_binary(n): 
    return bin(n).replace("0b","") [/INST]assert decimal_to_binary(8) == '1000'
assert decimal_to_binary(18) == '10010'
assert decimal_to_binary(7) == '111' </s>