| 
									
										
										
										
											2008-03-01 17:00:45 -05:00
										 |  |  | IN: ui.operations.tests | 
					
						
							| 
									
										
										
										
											2007-09-20 18:09:08 -04:00
										 |  |  | USING: ui.operations ui.commands prettyprint kernel namespaces | 
					
						
							|  |  |  | tools.test ui.gadgets ui.gadgets.editors parser io | 
					
						
							|  |  |  | io.streams.string math help help.markup ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | : my-pprint pprint ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [ drop t ] \ my-pprint [ ] [ ] f operation construct-boa "op" set
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [ [ 3 my-pprint ] ] [ | 
					
						
							|  |  |  |     3 "op" get operation-command command-quot | 
					
						
							|  |  |  | ] unit-test | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-02-15 23:20:31 -05:00
										 |  |  | [ "3" ] [ [ 3 "op" get invoke-command ] with-string-writer ] unit-test | 
					
						
							| 
									
										
										
										
											2007-09-20 18:09:08 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-01-02 22:07:59 -05:00
										 |  |  | [ drop t ] \ my-pprint [ ] [ editor-string ] f operation construct-boa | 
					
						
							| 
									
										
										
										
											2007-09-20 18:09:08 -04:00
										 |  |  | "op" set
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-01-02 22:07:59 -05:00
										 |  |  | [ "\"4\"" ] [ | 
					
						
							| 
									
										
										
										
											2007-09-20 18:09:08 -04:00
										 |  |  |     [ | 
					
						
							|  |  |  |         "4" <editor> [ set-editor-string ] keep
 | 
					
						
							|  |  |  |         "op" get invoke-command | 
					
						
							| 
									
										
										
										
											2008-02-15 23:20:31 -05:00
										 |  |  |     ] with-string-writer | 
					
						
							| 
									
										
										
										
											2007-09-20 18:09:08 -04:00
										 |  |  | ] unit-test | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [ ] [ | 
					
						
							| 
									
										
										
										
											2008-02-15 23:20:31 -05:00
										 |  |  |     [ { $operations \ + } print-element ] with-string-writer drop
 | 
					
						
							| 
									
										
										
										
											2007-09-20 18:09:08 -04:00
										 |  |  | ] unit-test |