Skip to content

Commit

Permalink
concordium tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturLevchuk committed Sep 22, 2024
1 parent 05ed896 commit b1d3c95
Show file tree
Hide file tree
Showing 4 changed files with 1,673 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,12 @@ class ConcordiumNetworkEnvironmentSettings
required this.typeOfNetwork,
this.networkClient,
});

@override
bool operator ==(Object other) =>
identical(this, other) ||
other is ConcordiumNetworkEnvironmentSettings &&
baseUrl == other.baseUrl &&
port == other.port &&
typeOfNetwork == other.typeOfNetwork;
}
14 changes: 14 additions & 0 deletions test/unit/concordium_formatter_test.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:flutterchain/flutterchain_lib/formaters/chains/concordium_formatter.dart';

void main() {
group("ConcordiumFormatter tests", () {
test("Convert micro Ccd to Ccd", () {
expect(ConcordiumFormatter.convertMicroCcdToCcd(1000000), 1);
});

test("Convert Ccd to micro Ccd", () {
expect(ConcordiumFormatter.convertCcdToMicroCcd(1), 1000000);
});
});
}
Loading

0 comments on commit b1d3c95

Please sign in to comment.