Skip to content

Commit

Permalink
Adds ILCB to bank lists
Browse files Browse the repository at this point in the history
  • Loading branch information
captn3m0 committed Dec 30, 2019
1 parent b552ba6 commit ead204d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/banknames.json
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@
"IDIB": "Indian Bank",
"IDUK": "Idukki District Co-operative Bank",
"IDUX": "Idukki District Co-operative Bank",
"ILCB": "Ilkal Co-operative Bank",
"IMPX": "Imphal Urban Co-operative Bank",
"INCX": "Indapur Urban Co-operative Bank",
"INDB": "Indusind Bank",
Expand Down
1 change: 1 addition & 0 deletions src/php/Bank.php
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ class Bank
const IDIB = 'IDIB';
const IDUK = 'IDUK';
const IDUX = 'IDUX';
const ILCB = 'ILCB';
const IMPX = 'IMPX';
const INCX = 'INCX';
const INDB = 'INDB';
Expand Down
1 change: 1 addition & 0 deletions src/ruby/bank.rb
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ module Bank
IDIB = :IDIB
IDUK = :IDUK
IDUX = :IDUX
ILCB = :ILCB
IMPX = :IMPX
INCX = :INCX
INDB = :INDB
Expand Down
3 changes: 2 additions & 1 deletion tests/php/CoverageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,14 @@ public function testPatches()

foreach ($yaml['ifsc'] as $code)
{
if (IFSC::validate($code) !== true)
if (IFSC::validate($code) !== true and $yaml['action'] != 'delete')
{
$failures[] = $code;
}
}
}

// BANKOFBAROD is an invalid code, so it is marked as an exception
$this->assertEquals([], $failures, "IFSC codes present in patches, but fails validation");
}
}

0 comments on commit ead204d

Please sign in to comment.