Advice for alternatives to unit testing when no expected value is known

I am writing several functions that I want to test. But, I have no way of knowing the true expected value, so I guess unit testing can’t be done here.

Any alternatives/solutions, or just expect to write correct code?