Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
mosuem committed Jan 20, 2023
1 parent aea7a7a commit f0d0530
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/number_format_test.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import 'package:intl/intl.dart';
import 'package:test/test.dart';

void main() {
test('numberOfIntegerDigits calculation', () {
int n = 1;
for (var i = 1; i < 20; i++) {
expect(i, NumberFormat.numberOfIntegerDigits(n));
n *= 10;
}
});
}

0 comments on commit f0d0530

Please # to comment.