Examples of maxn()


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

   
    for ( int i = 1; i <= 32; ++i ) {
      LuaValue v = LuaString.valueOf( "Test Value! "+i );
      t.set( i, v );
      assertEquals( i, t.length() );
      assertEquals( i, t.maxn() );
    }
  }

  public void testOutOfOrderlen() {
    LuaTable t = new_Table();
View Full Code Here

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

    for ( int j=8; j<32; j+=8 ) {
      for ( int i = j; i > 0; --i ) {
        t.set( i, LuaString.valueOf( "Test Value! "+i ) );
      }
      assertEquals( j, t.length() );
      assertEquals( j, t.maxn() );
    }
  }
 
  public void testStringKeyslen() {
    LuaTable t = new_Table();
View Full Code Here

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

    LuaTable t = new_Table();
   
    for ( int i = 1; i <= 32; ++i ) {
      t.set( "str-"+i, LuaString.valueOf( "String Key Test Value! "+i ) );
      assertEquals( 0, t.length() );
      assertEquals( 0, t.maxn() );
    }
  }

  public void testMixedKeyslen() {
    LuaTable t = new_Table();
View Full Code Here

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

   
    for ( int i = 1; i <= 32; ++i ) {
      t.set( "str-"+i, LuaString.valueOf( "String Key Test Value! "+i ) );
      t.set( i, LuaString.valueOf( "Int Key Test Value! "+i ) );
      assertEquals( i, t.length() );
      assertEquals( i, t.maxn() );
    }
  }

  private static final void compareLists(LuaTable t,Vector v) {
    int n = v.size();
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.