The six customer records form three pairs: A has two records, B has two, and C has two. Assigning A to training, B to validation, and C to test makes each pair stay together. The training/customer intersection with the test/customer set is empty. That is an exact property to assert. Merely having different row positions does not prove it.
For a numerical transformation, training values 10 and 20 give mean 15 and population standard deviation 5. Transforming a future value 30 gives (30−15)/5=3. Fitting on 10,20,30 instead would give mean 20, allowing the future record to influence preparation. A pipeline prevents that when only training rows are passed to fit.
For a classifier result, read the confusion matrix according to its explicit class order. With labels [0,1], rows are true classes and columns predicted classes. Matrix [[8,2],[1,9]] means eight true negatives, two false positives, one false negative, and nine true positives. Seventeen of twenty are correct, so accuracy is 85%. The assertions about split and shape can pass even when predictive accuracy is poor; they check engineering conditions, not universal quality.