7374757677787980818283
Bin func = new Bin(); String r = func.exec(t1); assertTrue(r.equals("young")); r = func.exec(t2); assertTrue(r.equals("M")); r = func.exec(t3); assertTrue(r==null);
7677787980818283848586
assertTrue(r.equals("young")); r = func.exec(t2); assertTrue(r.equals("M")); r = func.exec(t3); assertTrue(r==null); try { r = func.exec(t4); fail("Exception not triggered");
8081828384858687888990
r = func.exec(t3); assertTrue(r==null); try { r = func.exec(t4); fail("Exception not triggered"); } catch (IOException e) { assertTrue(e.getMessage().equals("Bin : Encounter null in the input")); } }
7071727374757677787980
t3.set(5, "L"); t3.set(6, new Double(1.90)); t4.set(7, "XL"); Bin func = new Bin(); String r = func.exec(t1); assertTrue(r.equals("young")); r = func.exec(t2); assertTrue(r.equals("M"));