Skip to content

Commit

Permalink
chore: test notation
Browse files Browse the repository at this point in the history
  • Loading branch information
tabaktoni committed Jan 26, 2024
1 parent f43de6e commit a0952d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions __tests__/utils/uint256.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ import { cairo } from '../../src';
import { UINT_128_MAX, UINT_256_MAX, bnToUint256, uint256ToBN } from '../../src/utils/uint256';

describe('cairo uint256', () => {
test('bnToUint256 should not convert -1 from BN to uint256 struct', () => {
test('bnToUint256 should not convert -1 from BN to uint256 hex-string struct', () => {
expect(() => {
bnToUint256(-1n);
}).toThrow('uint256 must be positive number');
});

test('uint256 should not convert -1 to uint256 hex-string struct', () => {
test('uint256 should not convert -1 to uint256 dec struct', () => {
expect(() => {
cairo.uint256(-1n);
}).toThrow('uint256 must be positive number');
});

test('uint256 should not convert -1 to uint256 dec struct', () => {
test('uint256 should convert 1000 to uint256 dec struct', () => {
const uint256 = cairo.uint256(1000n);
expect(uint256).toMatchInlineSnapshot(`
Object {
Expand Down

0 comments on commit a0952d4

Please sign in to comment.