Tests: array version 9

Function:
Description: Creates an array.
Version:
Status: current
Date: 2011-12-25 03:43
Summary: Removing 'all pass' test.
Programmer: jj5
Tests
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function array_tests() {

  // API reference: http://docs.jquery.com/QUnit
  module( "array" );

  test( "array", function() {

    deepEqual( array( 1, 2, 3 ), [ 1, 2, 3 ] );

    ini_set( 'phpjs.return_phpjs_arrays', 'on' );
    var a = array( {0:2}, {'a': 41 }, {2:3} ).change_key_case( 'CASE_UPPER' ).keys();
    deepEqual( a, [ '0', 'A', '2' ] );

  } );

}
[top]

Comments

There are no comments yet, be the first!

Please Login or Register to post comments.