32 lines
		
	
	
		
			878 B
		
	
	
	
		
			Factor
		
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			878 B
		
	
	
	
		
			Factor
		
	
	
USING: kernel tools.test windows.ole32 alien.c-types
 | 
						|
classes.struct specialized-arrays windows.kernel32
 | 
						|
windows.com.syntax ;
 | 
						|
SPECIALIZED-ARRAY: uchar
 | 
						|
IN: windows.ole32.tests
 | 
						|
 | 
						|
[ t ] [
 | 
						|
    "{01234567-89ab-cdef-0123-456789abcdef}" string>guid
 | 
						|
    "{01234567-89ab-cdef-0123-456789abcdef}" string>guid
 | 
						|
    guid=
 | 
						|
] unit-test
 | 
						|
        
 | 
						|
[ f ] [
 | 
						|
    "{76543210-89ab-cdef-0123-456789abcdef}" string>guid
 | 
						|
    "{01234567-89ab-cdef-0123-456789abcdef}" string>guid
 | 
						|
    guid=
 | 
						|
] unit-test
 | 
						|
        
 | 
						|
[ f ] [
 | 
						|
    "{01234567-89ab-cdef-0123-fedcba987654}" string>guid
 | 
						|
    "{01234567-89ab-cdef-0123-456789abcdef}" string>guid
 | 
						|
    guid=
 | 
						|
] unit-test
 | 
						|
        
 | 
						|
[
 | 
						|
    GUID: 01234567-89ab-cdef-0123-456789abcdef}
 | 
						|
] [ "{01234567-89ab-cdef-0123-456789abcdef}" string>guid ] unit-test
 | 
						|
 | 
						|
[ "{01234567-89ab-cdef-0123-456789abcdef}" ]
 | 
						|
[ "{01234567-89ab-cdef-0123-456789abcdef}" string>guid guid>string ]
 | 
						|
unit-test
 |