File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ export class UriIterator implements IKeyIterator<URI> {
206206
207207 cmp ( a : string ) : number {
208208 if ( this . _states [ this . _stateIdx ] === UriIteratorState . Scheme ) {
209- return compareSubstringIgnoreCase ( a , this . _value . scheme ) ;
209+ return compare ( a , this . _value . scheme ) ;
210210 } else if ( this . _states [ this . _stateIdx ] === UriIteratorState . Authority ) {
211211 return compareSubstringIgnoreCase ( a , this . _value . authority ) ;
212212 } else if ( this . _states [ this . _stateIdx ] === UriIteratorState . Path ) {
Original file line number Diff line number Diff line change @@ -371,7 +371,8 @@ suite('Map', () => {
371371 iter . reset ( URI . parse ( 'file:///usr/bin/file.txt' ) ) ;
372372
373373 assert . equal ( iter . value ( ) , 'file' ) ;
374- assert . equal ( iter . cmp ( 'FILE' ) , 0 ) ;
374+ // assert.equal(iter.cmp('FILE'), 0);
375+ assert . equal ( iter . cmp ( 'file' ) , 0 ) ;
375376 assert . equal ( iter . hasNext ( ) , true ) ;
376377 iter . next ( ) ;
377378
@@ -391,7 +392,8 @@ suite('Map', () => {
391392
392393 // scheme
393394 assert . equal ( iter . value ( ) , 'file' ) ;
394- assert . equal ( iter . cmp ( 'FILE' ) , 0 ) ;
395+ // assert.equal(iter.cmp('FILE'), 0);
396+ assert . equal ( iter . cmp ( 'file' ) , 0 ) ;
395397 assert . equal ( iter . hasNext ( ) , true ) ;
396398 iter . next ( ) ;
397399
You can’t perform that action at this time.
0 commit comments