We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ae8129 commit a1eeed1Copy full SHA for a1eeed1
src/model/UInt64.ts
@@ -38,7 +38,7 @@ export class UInt64 {
38
*/
39
public static fromUint(value: number): UInt64 {
40
if (value < 0) {
41
- throw new Error('Unit value cannot be negative');
+ throw new Error('Unsigned integer cannot be negative');
42
}
43
return new UInt64(uint64.fromUint(value));
44
test/model/UInt64.spec.ts
@@ -67,7 +67,7 @@ describe('Uint64', () => {
67
it('should fromUnit throw exception with negative unit value', () => {
68
expect(() => {
69
UInt64.fromUint(-1);
70
- }).to.throw(Error, 'Unit value cannot be negative');
+ }).to.throw(Error, 'Unsigned integer cannot be negative');
71
});
72
73
describe('equal', () => {
0 commit comments