She had given you mixed messages. She may be testing you to see what would happen after the break up even if it is done subconsciously. What she had said to you and her actions are not congruent.
Contrary to the saying that opposites attract, for a relationship to be a long lasting and a healthy one, both partners have to have more things in common with one another. It is unclear about how long the two of you had been dating. People can learn to compromise and that is needed in any relationship. If you agree that the two of you have too many things in common and that they can act against you, then her decision was most likely influenced by that.
If the two of you are still talking, try to set some time to talk about what had caused this (even if she says she does not know. All behavior is driven by a purpose/goal)
how might sh e be testing me??? Is there something i should/can do??