Yeah, do a compression and a leak down test. But first you’ll need a belt. If you are deciding whether or not to junk the car buy a cheap belt. If you plan on driving the car a lot more, get a good aftermarket or oem belt, cam/crank seals, and a water pump. Inspect the tensioner too.
You could do a leak down without the timing belt, but you’ll need one for the compression test. If the car runs fine there is probably no damage.
I know quite a few people that have gotten lucky with broken timing belts and the engine being okay. Make sure to change them every 100k miles or so.