CSC300 / CSC402: Manual Testing [6/20] |
01 |
package algs11; import stdlib.*; public class PlaygroundMax { public static int max (int x, int y, int z) { int m = x; if (m < y) { m = y; } if (m < z) { m = z; } return m; } public static void main (String[] args) { StdOut.println (max(11, 21, 31)); StdOut.println (max(11, 31, 21)); StdOut.println (max(31, 11, 21)); } } |
Manual testing does not scale.
Manual testing instills fear of change.