- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {FileOutputStream f =
File file;new FileOutputStream(file)
String name;new FileOutputStream(name)
File file;new FileOutputStream(file, true)
- Smart code suggestions by Codota
}
@Test public void testTurnFlagEncoding_noCostsAndRestrictions() { long flags_r0 = footEncoder.getTurnFlags(true, 0); long flags_0 = footEncoder.getTurnFlags(false, 0); long flags_r20 = footEncoder.getTurnFlags(true, 20); long flags_20 = footEncoder.getTurnFlags(false, 20); assertEquals(0, footEncoder.getTurnCost(flags_r0), 1e-1); assertEquals(0, footEncoder.getTurnCost(flags_0), 1e-1); assertEquals(0, footEncoder.getTurnCost(flags_r20), 1e-1); assertEquals(0, footEncoder.getTurnCost(flags_20), 1e-1); assertFalse(footEncoder.isTurnRestricted(flags_r0)); assertFalse(footEncoder.isTurnRestricted(flags_0)); assertFalse(footEncoder.isTurnRestricted(flags_r20)); assertFalse(footEncoder.isTurnRestricted(flags_20)); }