Been a while since I've seen some to-the-letter victim blaming. That's not how this works. "Man, you got infected. I guess you shoulda acted more responsibly. That'll teach you!"
If someone got treated for HIV, found out they have it, and neglected to tell their partners. The risk is on YOU. You chose to have sex with that person. Anytime you have sex with someone, you're taking a risk (and not just HIV, either) and it's not THEIR job to inform YOU on their status.
Would it be a nice thing to do? Yes. Should they go to jail if they don't? No.
Most people with HIV don't even know they have it. And the reason most don't know they have it, is because they fear the diagnosis, not the disease. The stigmas on HIV make it as if the diagnosis itself is a death sentence. Then people fear dating (or even just being around) people with HIV, and now you have people being selfish with their status on top of that.
This bill doesn't make those problems go away, but it encourages people to get tested, and get informed. It also makes people (like y'all) who are trying to live in a bubble; more aware of the various incurable and curable diseases you are at risk of contracting every, single, time you have sex.
Use condoms, protect yourself, get tested. Shit, if you REALLY want to be safe, don't have sex at all. We need to stop criminalizing HIV.
And how did this law or bill discourage people from getting tested/informed? The onus should ABSOLUTELY be on the infected party to warn their would-be partner. Perhaps THEY should have acted more responsibly before THEY got infected, and can no longer live a 100% normal life that doesn't include warning people.