Coder Social home page Coder Social logo

clabe-dart's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

clabe-dart's Issues

CI

  • write tests
  • travisCI integration
  • 100% test coverage verified with coveralls.io

make compatible with new SDK versions

tests fails when running on a new dart SDK version. here is the error log using SDK >= 2.18.2

Installing Dart SDK version "latest" from the stable channel (release) on linux-x64
Downloading https://storage.googleapis.com/dart-archive/channels/stable/release/latest/sdk/dartsdk-linux-x64-release.zip...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
[10](https://github.com/cuenca-mx/clabe-dart/actions/runs/3277530311/jobs/5394925508#step:3:12)0  180M  100  180M    0     0   213M      0 --:--:-- --:--:-- --:--:--  213M
Pub cache set to: /home/runner/.pub-cache
Successfully installed Dart SDK:
Dart SDK version: 2.18.2 (stable) (Tue Sep 27 13:24:[11](https://github.com/cuenca-mx/clabe-dart/actions/runs/3277530311/jobs/5394925508#step:3:13) 2022 +0200) on "linux_x64"
....
00:00 +0: loading test/clabe_test.dart                                                                                                                                                                 
00:01 +0: loading test/clabe_test.dart                                                                                                                                                                 
00:01 +0 -1: loading test/clabe_test.dart [E]                                                                                                                                                          
  Failed to load "test/clabe_test.dart":
  Unable to spawn isolate: test/clabe_test.dart: Error: A library can't opt out of null safety by default, when using sound null safety.
  Error: Cannot run with sound null safety, because the following dependencies
  don't support null safety:
  
   - package:test_core
   - package:test_api
   - package:test
   - package:clabe_dart
   - package:boolean_selector
   - package:matcher
  
  For solutions, see https://dart.dev/go/unsound-null-safety

00:01 +0 -1: Some tests failed.                                                                                                                                                                        
Error: Process completed with exit code 1.

Validate CLABE

Verify

  • string of digits
  • length == 18
  • bank code (first 3 digits) are valid
  • control digit (last digit) is valid

Similar logic to cuenca-python.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.