Skip to content

Commit

Permalink
update naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandbel committed Jun 2, 2024
1 parent 436aa46 commit a86bff6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions src/test/feature-math.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ describe("feature-math", () => {
expect(await contract.getDivAug(2n, 2n)).toBe(1n);
expect(await contract.getModAug(2n, 2n)).toBe(0n);
expect(await contract.getModAug(3n, 2n)).toBe(1n);
expect(await contract.getOrAug(2n, 1n)).toBe(3n);
expect(await contract.getOrAug(2n, 2n)).toBe(2n);
expect(await contract.getOrAug(5n, 3n)).toBe(7n);
expect(await contract.getAndAug(3n, 2n)).toBe(2n);
expect(await contract.getAndAug(5n, 6n)).toBe(4n);
expect(await contract.getAndAug(1n, 3n)).toBe(1n);
expect(await contract.getXorAug(1n, 2n)).toBe(3n);
expect(await contract.getXorAug(3n, 1n)).toBe(2n);
expect(await contract.getXorAug(2n, 0n)).toBe(2n);
expect(await contract.getBitwiseOrAug(2n, 1n)).toBe(3n);
expect(await contract.getBitwiseOrAug(2n, 2n)).toBe(2n);
expect(await contract.getBitwiseOrAug(5n, 3n)).toBe(7n);
expect(await contract.getBitwiseAndAug(3n, 2n)).toBe(2n);
expect(await contract.getBitwiseAndAug(5n, 6n)).toBe(4n);
expect(await contract.getBitwiseAndAug(1n, 3n)).toBe(1n);
expect(await contract.getBitwiseXorAug(1n, 2n)).toBe(3n);
expect(await contract.getBitwiseXorAug(3n, 1n)).toBe(2n);
expect(await contract.getBitwiseXorAug(2n, 0n)).toBe(2n);

// Basic Compare
expect(await contract.getCompare1(1n, 2n)).toBe(false);
Expand Down
6 changes: 3 additions & 3 deletions src/test/features/math.tact
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,17 @@ contract MathTester with Deployable {
return a;
}

get fun orAug(a: Int, b: Int): Int {
get fun bitwiseOrAug(a: Int, b: Int): Int {
a |= b;
return a;
}

get fun andAug(a: Int, b: Int): Int {
get fun bitwiseAndAug(a: Int, b: Int): Int {
a &= b;
return a;
}

get fun xorAug(a: Int, b: Int): Int {
get fun bitwiseXorAug(a: Int, b: Int): Int {
a ^= b;
return a;
}
Expand Down

0 comments on commit a86bff6

Please sign in to comment.