import { Getter } from '../../src' ; import * as assert from 'assert' ; type Point = { readonly x : number ; readonly y : number ; } ; const _x = new Getter < Point , number > ( ( p ) : number => p . x ) ; describe ( 'Getter' , ( ) => { const eg0 = { x : 42 , y : - 1 } ; it ( 'get' , ( ) => { assert . strictEqual ( _x . get ( eg0 ) , 42 ) ; } ) ; } ) ;