Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: albertodev01/fraction
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5.0.1
Choose a base ref
...
head repository: albertodev01/fraction
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5.0.2
Choose a head ref
  • 3 commits
  • 6 files changed
  • 1 contributor

Commits on Aug 22, 2023

  1. Copy the full SHA
    b1b7e6c View commit details
  2. chore: fixed CI

    albertodev01 committed Aug 22, 2023
    Copy the full SHA
    19c8899 View commit details
  3. Merge pull request #26 from albertodev01/develop

    chore: Update dependencies
    albertodev01 authored Aug 22, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    9cf92d8 View commit details
Showing with 24 additions and 12 deletions.
  1. +4 −0 CHANGELOG.md
  2. +0 −2 analysis_options.yaml
  3. +4 −0 example/CHANGELOG.md
  4. +4 −4 example/pubspec.yaml
  5. +4 −4 pubspec.yaml
  6. +8 −2 test/types/standard_test.dart
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 5.0.2
- Updated Dart SDK constraints to `^3.1.0`
- Dependencies update

## 5.0.1
- Dependencies update

2 changes: 0 additions & 2 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -82,15 +82,13 @@ linter:
- implicit_call_tearoffs
- implicit_reopen
- invalid_case_patterns
- iterable_contains_unrelated_type
- join_return_with_assignment
- leading_newlines_in_multiline_strings
- library_annotations
- library_names
- library_prefixes
- library_private_types_in_public_api
- lines_longer_than_80_chars
- list_remove_unrelated_type
- literal_only_boolean_expressions
- matching_super_parameters
- missing_whitespace_between_adjacent_strings
4 changes: 4 additions & 0 deletions example/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.8
- Updated Dart SDK constraints to `^3.1.0`
- Updated dependencies and pubspec file

## 1.0.7
- Updated dependencies

8 changes: 4 additions & 4 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: fraction_example
description: A Dart CLI application that uses the API of the 'fraction' package.
version: 1.0.7
version: 1.0.8
repository: https://github.com/albertodev01/fraction/tree/master/example
homepage: https://fluttercompletereference.com/
homepage: https://pub.dev/packages/fraction
publish_to: none

environment:
sdk: ^3.0.0
sdk: ^3.1.0

dependencies:
fraction:
path: ../

dev_dependencies:
test: ^1.24.4
test: ^1.24.6
8 changes: 4 additions & 4 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: fraction
description: A package that helps you work with fractions and mixed fractions.
version: 5.0.1
version: 5.0.2
repository: https://github.com/albertodev01/fraction
homepage: https://fluttercompletereference.com/
homepage: https://pub.dev/packages/fraction

environment:
sdk: ^3.0.0
sdk: ^3.1.0

dev_dependencies:
test: ^1.24.4
test: ^1.24.6
10 changes: 8 additions & 2 deletions test/types/standard_test.dart
Original file line number Diff line number Diff line change
@@ -244,7 +244,7 @@ void main() {
expect(inverse.isImproper, equals(true));
});

test('Making sure that the gliph conversion is correct', () {
test('Making sure that the glyph conversion is correct', () {
expect(Fraction(1, 2).toStringAsGlyph(), equals('½'));
expect(Fraction(1, 3).toStringAsGlyph(), equals('⅓'));
expect(Fraction(2, 3).toStringAsGlyph(), equals('⅔'));
@@ -273,7 +273,7 @@ void main() {
});

test(
'Making sure that a non-gliph encodeable fraction throws when trying '
'Making sure that a non-glyph encodeable fraction throws when trying '
'to convert it into a glyph',
() {
expect(
@@ -315,6 +315,12 @@ void main() {
expect(Fraction(1, 15).isWhole, isFalse);
});

test('Making sure that whole fraction detection works', () {
expect(Fraction(15).isWhole, isTrue);
expect(Fraction(16, 2).isWhole, isFalse);
expect(Fraction(1, 15).isWhole, isFalse);
});

test(
'Making sure that reduction to the lowest terms works as expected',
() {