Skip to content

Commit a0952d4

Browse files
committed
chore: test notation
1 parent f43de6e commit a0952d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

__tests__/utils/uint256.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ import { cairo } from '../../src';
22
import { UINT_128_MAX, UINT_256_MAX, bnToUint256, uint256ToBN } from '../../src/utils/uint256';
33

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

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

17-
test('uint256 should not convert -1 to uint256 dec struct', () => {
17+
test('uint256 should convert 1000 to uint256 dec struct', () => {
1818
const uint256 = cairo.uint256(1000n);
1919
expect(uint256).toMatchInlineSnapshot(`
2020
Object {

0 commit comments

Comments
 (0)