How far can you be from the curb when parallel parking in the road test?

Also, I'm confused as to how the test works. Is it like a normal test in which certain things wrong deduct points, and as long as you have enough points in the end you pass? Or is it a "succeed at everything or you fail everything" kind of deal?

Other answer:

Samuel:
In most places you must be within 18 inches or 50 cm. of the curb with your tires.
Katie:
When you park you MUST be no more than 2 inches from the curb.
ㅤ:
A thought shared.
Dan B:
18". That's 1ft 6in.
djaca70:
Usually two to three feet.
John:
18 inches.
123abc:
Read the learners permit manual you dumb ******!