Tests: bcmod version 28

Function:
Description: Get the modulus of the left_operand using modulus.
Version:
Status: obsolete
Date: 2012-03-16 19:36
Summary: Just testing bcadd's treatment of commas.
Programmer: jj5
Tests
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function bcmod_tests() {

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

  test( "bcmod", function() {
    equal( bcadd( '1,000', '1' ), '1001' );
    equal( bcmod( '4', '2' ), '0' );
    equal( bcmod( '2', '4' ), '2' );
    equal( bcmod( '123456', '1000' ), '456' );

    ok( true, "all pass" );

  } );

}
[top]

Comments

There are no comments yet, be the first!

Please Login or Register to post comments.