I test all scripts as I generate them. I also generate them function by function and test. If I’m not getting the expected output it’s easy to catch that. I’m not doing super complicated stuff, but for the few I’ve had to do, it’s worked very well. Just because I don’t remember perfect syntax because I use it a couple of times a year doesn’t mean I won’t catch bugs.
Canada either did, or still does, have a law like this. Years ago back when getting chipped cards for satellites was a pretty big thing, a lot of people near the US border could get ones from the US that weren’t available in Canada and get the chipped card or whatever it was. At one point the company made a request to the Canadian authorities to crack down on it, and the response was something to the effect of ‘your product isn’t available here, you don’t have standing to ask us to do that’.
It’s easier to define it as this:
If you commercially release something and region restrict it, people in any region where you don’t also provide a legal way to purchase/use it should be free to get it however they want.