Skip to content

Commit

Permalink
redo merge conflict fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Trivo25 committed Nov 7, 2022
1 parent d49dc72 commit d0d981a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/lib/int.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ describe('int', () => {
expect(() => {
Circuit.runAndCheck(() => {
const x = Circuit.witness(UInt64, () => UInt64.from(1));
const y = Circuit.witness(UInt64, () => new UInt64(Field.one));
const y = Circuit.witness(UInt64, () => new UInt64(Field(1)));
x.assertEquals(y);
});
}).not.toThrow();
Expand All @@ -726,7 +726,7 @@ describe('int', () => {
expect(() => {
Circuit.runAndCheck(() => {
const x = Circuit.witness(UInt64, () => UInt64.from('1'));
const y = Circuit.witness(UInt64, () => new UInt64(Field.one));
const y = Circuit.witness(UInt64, () => new UInt64(Field(1)));
x.assertEquals(y);
});
}).not.toThrow();
Expand Down Expand Up @@ -1639,7 +1639,7 @@ describe('int', () => {
expect(() => {
Circuit.runAndCheck(() => {
const x = Circuit.witness(UInt32, () => UInt32.from(1));
const y = Circuit.witness(UInt32, () => new UInt32(Field.one));
const y = Circuit.witness(UInt32, () => new UInt32(Field(1)));
x.assertEquals(y);
});
}).not.toThrow();
Expand All @@ -1663,7 +1663,7 @@ describe('int', () => {
expect(() => {
Circuit.runAndCheck(() => {
const x = Circuit.witness(UInt32, () => UInt32.from('1'));
const y = Circuit.witness(UInt32, () => new UInt32(Field.one));
const y = Circuit.witness(UInt32, () => new UInt32(Field(1)));
x.assertEquals(y);
});
}).not.toThrow();
Expand Down Expand Up @@ -2068,9 +2068,9 @@ describe('int', () => {

describe('from() ', () => {
describe('fromNumber()', () => {
it('should be the same as Field.one', () => {
it('should be the same as Field(1)', () => {
const x = UInt32.from(1);
expect(x.value).toEqual(new UInt32(Field.one).value);
expect(x.value).toEqual(new UInt32(Field(1)).value);
});

it('should be the same as 2^53-1', () => {
Expand All @@ -2079,9 +2079,9 @@ describe('int', () => {
});
});
describe('fromString()', () => {
it('should be the same as Field.one', () => {
it('should be the same as Field(1)', () => {
const x = UInt32.from('1');
expect(x.value).toEqual(new UInt32(Field.one).value);
expect(x.value).toEqual(new UInt32(Field(1)).value);
});

it('should be the same as 2^53-1', () => {
Expand Down

0 comments on commit d0d981a

Please sign in to comment.