Skip to content

Commit

Permalink
update test to new names
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Abraham <[email protected]>
  • Loading branch information
jabraham17 committed Jul 19, 2023
1 parent 418e711 commit 7b4ef51
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/library/standard/GMP/ldelaney/gmp_Bigint_logic_bit.chpl
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ writeln(a, "'s first 0 bit is in position ", a.scan0(0));
a.set(96);
writeln(a, "'s first 1 bit is in position ", a.scan1(0));

a.setbit(2); // set bit 2 (if not set, adds 2^2)
a.setBit(2); // set bit 2 (if not set, adds 2^2)
writeln(a);

a.clrbit(6); // clear bit 6 (if set, subtracts 2^6)
a.clearBit(6); // clear bit 6 (if set, subtracts 2^6)
writeln(a);

a.combit(3); // flip the bit signifying 2^3 (adds or subtracts 2^3)
a.toggleBit(3); // flip the bit signifying 2^3 (adds or subtracts 2^3)
writeln(a);
writeln("bit 3 of a is ", a.tstbit(3));
writeln("bit 3 of a is ", a.getBit(3));

0 comments on commit 7b4ef51

Please sign in to comment.