Skip over %renames with non-matching %(regex)s expansion when looking for the one to apply to the given name. This allows to have multiple anonymous renames using regex as now the first _matching_ one will be used instead of always using the first one and ignoring all the rest of them. Extend unit tests to verify that applying two anonymous %renames does work as expected. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12293 626c5289-ae23-0410-ae9c-e8d60b6d4f22
14 lines
431 B
Java
14 lines
431 B
Java
import rename_pcre_encoder.*;
|
|
|
|
public class rename_pcre_encoder_runme {
|
|
static { System.loadLibrary("rename_pcre_encoder"); }
|
|
|
|
public static void main(String argv[])
|
|
{
|
|
SomeWidget w = new SomeWidget();
|
|
w.putBorderWidth(17);
|
|
if ( w.getBorderWidth() != 17 )
|
|
throw new RuntimeException(String.format("Border with should be 17, not %d",
|
|
w.getBorderWidth()));
|
|
}
|
|
}
|