Skip to content

Commit a62559f

Browse files
committed
✅ Improve tests
1 parent 2f69437 commit a62559f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/agent_dart_base/test/agent/utils/leb128.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ void leb128Test() {
2424
lebEncode(BigInt.from(60000000000000000)).toHex(),
2525
'808098f4e9b5ca6a',
2626
);
27+
expect(lebEncode('1').toHex(), '01');
2728

2829
expect(lebDecode(BufferPipe<int>(Uint8List.fromList([0]))), BigInt.zero);
2930
expect(lebDecode(BufferPipe<int>(Uint8List.fromList([1]))), BigInt.one);
@@ -59,6 +60,7 @@ void leb128Test() {
5960
slebEncode(BigInt.parse('60000000000000000')).toHex(),
6061
'808098f4e9b5caea00',
6162
);
63+
expect(slebEncode('1').toHex(), '01');
6264

6365
expect(
6466
slebDecode(BufferPipe<int>(Uint8List.fromList([0x7f]))),

packages/agent_dart_base/test/wallet/signer.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ void main() {
4141
stopwatch.stop();
4242
final acc22TimePeriod = stopwatch.elapsed;
4343

44-
expect(acc21TimePeriod < allCurvesDuration, true);
45-
expect(acc22TimePeriod < allCurvesDuration, true);
44+
print([allCurvesDuration, acc21TimePeriod, acc22TimePeriod]);
45+
expect(acc21TimePeriod <= allCurvesDuration, true);
46+
expect(acc22TimePeriod <= allCurvesDuration, true);
4647
expect(acc2.account.identity != null, true);
4748
expect(acc2.account.ecIdentity != null, true);
4849
expect(acc21.account.ecIdentity, equals(null));

0 commit comments

Comments
 (0)