Package org.luaj.vm2

Examples of org.luaj.vm2.LuaTable.keys()


            return wgScript + "?title="+page.checkstring()+"&"+query.checkjstring();
        } else if (query.istable()) {
            LuaTable params = query.checktable();

            String base = wgScript + "?title="+page.checkstring()+"&";
            for (LuaValue key : params.keys()) {
                base += (key.tojstring() + "=" + params.get(key).tojstring());
            }
            return base;
        } else {
            throw new AssertionError("unexpected type: "+query);
View Full Code Here


    assertTrue( t.getArrayLength() >= 9 ); // 1, 2, ..., 9
    assertTrue( t.getArrayLength() <= 18 );
    assertTrue( t.getHashLength() >= 11 ); // 0, "0", "1", ..., "9"
    assertTrue( t.getHashLength() <= 33 );
   
    LuaValue[] keys = t.keys();
   
    int intKeys = 0;
    int stringKeys = 0;
   
    assertEquals( 20, keys.length );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.