Compute Accuracy of k-means
K-Means is a clustering technique NOT classification. You don't have the ground truth here to compare with. Hence accuracy doesn't make any sense.

You can train the model and with the test data predict which cluster the test data belongs to.

Try to visualize it, it shall be helpful.