use lc for comapring.
add test cases.