import * as O from '.' ; describe ( 'rewrite' , ( ) => { const lens = O . rewrite ( ( x ) => x . toUpperCase ( ) ) ; it ( 'get' , ( ) => { const result = O . get ( lens , 'foo' ) ; expect ( result ) . toEqual ( 'foo' ) ; } ) ; it ( 'set - monomorphic' , ( ) => { const result = O . set ( lens , 'foo' , '' ) ; expect ( result ) . toEqual ( 'FOO' ) ; } ) ; } ) ;