Make present work on vocabularies
							parent
							
								
									63c0e5470b
								
							
						
					
					
						commit
						50a4e018e1
					
				| 
						 | 
					@ -0,0 +1,7 @@
 | 
				
			||||||
 | 
					IN: present.tests
 | 
				
			||||||
 | 
					USING: tools.test present math vocabs ;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[ "3" ] [ 3 present ] unit-test
 | 
				
			||||||
 | 
					[ "Hi" ] [ "Hi" present ] unit-test
 | 
				
			||||||
 | 
					[ "+" ] [ \ + present ] unit-test
 | 
				
			||||||
 | 
					[ "kernel" ] [ "kernel" vocab present ] unit-test
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,7 @@
 | 
				
			||||||
! Copyright (C) 2008 Slava Pestov.
 | 
					! Copyright (C) 2008, 2009 Slava Pestov.
 | 
				
			||||||
! See http://factorcode.org/license.txt for BSD license.
 | 
					! See http://factorcode.org/license.txt for BSD license.
 | 
				
			||||||
USING: accessors math math.parser strings words kernel effects ;
 | 
					USING: accessors math math.parser strings words vocabs
 | 
				
			||||||
 | 
					kernel effects ;
 | 
				
			||||||
IN: present
 | 
					IN: present
 | 
				
			||||||
 | 
					
 | 
				
			||||||
GENERIC: present ( object -- string )
 | 
					GENERIC: present ( object -- string )
 | 
				
			||||||
| 
						 | 
					@ -11,6 +12,8 @@ M: string present ;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
M: word present name>> ;
 | 
					M: word present name>> ;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					M: vocab present name>> ;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
M: effect present effect>string ;
 | 
					M: effect present effect>string ;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
M: f present drop "" ;
 | 
					M: f present drop "" ;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue