That's my first time posting here, hope the title to be appropriate.

I've started college a while ago and from a class which contains approximately10 women and 10 men I'm one of the three men that don't look feminine, among those three I'm the better looking one by far, maybe for that reason this girl got interested on me, although she's very likely an SJW she looks really good, a tall black girl, skinny but with a beautiful ass. Many times I noticed her looking at me, sometimes she would smile at me in a very sexy way, some of the guys I hang with even noticed it and commented she behaves different towards me. Anyway, I started greeting her when I arrive in the class and she always replies with that same attitude. One day we had a class in which different courses were put on the same classroom, when she noticed me in class she immediately told me to sit on the chair behind her, started talking to me and even borrowed me her notebook without me asking for it, so I could keep up with the subjects. On that same day she left the classroom a bit earlier and I went after her, my plan was to invite her for having some ice-cream and see what I could get, but after a short talk she told me that her boyfriend would pick her up (she really does have a boyfriend, I've confirmed it afterwards) in that moment I didn't even tried to hide that I was negatively surprised by the information, I just said '' do you have a boyfriend?'' she said ''yes, do you have a girlfriend?'' I replied no and and when she asked me where I would go from there I told her I would go back to class since I had only leaved for talking to her (Yes, now I know that it probably wasn't a smart thing to say). Anyway, since that day she keeps greeting me in the same way, always smiling and looking in that sexy manner, once in a while she will also ask me something in order to spark a conversation but I don't give her much attention, So my questions are:

1- What is or was all that about? shit testing? did I misunderstood kindness or whatever was that for flirting?

2-If she was indeed interested where did I mess it up? Did I mess it up at all?