Skip to content

Commit

Permalink
Released 4.1.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
bsutton committed Feb 17, 2024
1 parent 5b52242 commit d1387ba
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 4.1.0
- upgraded to intl 0.19

# 4.0.0
- updated min sdk to 3.x
- updated to fixed 4.x
Expand Down
4 changes: 2 additions & 2 deletions lib/src/version/version.g.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/// GENERATED BY pub_release do not modify.
/// money2 version
String packageVersion = '4.0.0';
/// Instance of 'Name' version
String packageVersion = '4.1.0';
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: money2
version: 4.0.0
version: 4.1.0
homepage: https://money2.onepub.dev
documentation: https://money2.onepub.dev
description: Money and Currency classes with fixed precision maths, parsing and formatting. (Money.parse('$2010.00') * 10).format('S CC#,##0') -> $ US20,100
Expand All @@ -8,8 +8,8 @@ environment:
sdk: '>=3.0.0 <4.0.0'
dependencies:
decimal: ^2.3.0
fixed: ^4.0.0
intl: ^0.18.0
fixed: ^4.1.0
intl: ^0.19.0
meta: ^1.9.0
dev_dependencies:
lint_hard: ^4.0.0
Expand Down
4 changes: 2 additions & 2 deletions pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
dependency_overrides:
# fixed:
# path: ../fixed
fixed:
path: ../fixed
9 changes: 9 additions & 0 deletions test/src/currencies_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,14 @@ void main() {
Currencies()['TEST'] = Currency.create('TEST', 2);
expect(Currencies().find('TEST'), isNotNull);
});

test('invalid currency', () {
/// base line test that we have USD registered
expect(Currencies()['USD'], isNotNull);

/// no try a slighly longer variant that doesn't exist.
expect(Currencies()['USDT'], isNull);
expect(Currencies().find('USDT'), isNull);
});
});
}

0 comments on commit d1387ba

Please # to comment.