import { BitArray , AbstractExpandedDecoder , createAbstractExpandedDecoder } from '@zxing/library' ; import { assertEquals } from '../../../util/AssertUtils' ; import BinaryUtil from './BinaryUtil' ; author Pablo Orduña, University of Deusto (pablo.orduna deusto author Eduardo Castillejo, University of Deusto (eduardo.castillejo deusto it ( 'ExpandedInformationDecoderTest' , ( ) => { it ( 'testNoAi' , ( ) => { let information = BinaryUtil . buildBitArrayFromString ( ' .......X ..XX..X. X.X....X .......X ....' ) ; let decoder = createAbstractExpandedDecoder ( information ) ; let decoded = decoder . parseInformation ( ) ; assertEquals ( '(10)12A' , decoded ) ; } ) ; } ) ;