# HG changeset patch # User Paul Boddie # Date 1100875543 -3600 # Node ID 2c8239b4e8adfc628a81880df8a1817caca60cf4 # Parent be1a46eda340fdf27b61441001db6d5e89d06bfc Added a test of switch statements. diff -r be1a46eda340 -r 2c8239b4e8ad tests/SwitchTest.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/SwitchTest.java Fri Nov 19 15:45:43 2004 +0100 @@ -0,0 +1,21 @@ +public class SwitchTest { + + public int test(int x) { + switch (x) { + case 0: + + case 1: + x = x + 10; + break; + + case 2: + x = x + 20; + break; + + default: + break; + } + + return x; + } +}