mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Add GAP .tst extension plus two sample files
This commit is contained in:
		
							
								
								
									
										21
									
								
								samples/GAP/factor.tst
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								samples/GAP/factor.tst
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
			
		||||
gap> START_TEST("Test of factor groups and natural homomorphisms");
 | 
			
		||||
 | 
			
		||||
gap> G:=HeisenbergPcpGroup(2);
 | 
			
		||||
Pcp-group with orders [ 0, 0, 0, 0, 0 ]
 | 
			
		||||
 | 
			
		||||
gap> H:=Subgroup(G,[G.2,G.3,G.4,G.5]);
 | 
			
		||||
gap> K:=G/H;
 | 
			
		||||
gap> NaturalHomomorphism(K);
 | 
			
		||||
 | 
			
		||||
gap> A:=Subgroup(H, [G.3]);
 | 
			
		||||
Pcp-group with orders [ 0 ]
 | 
			
		||||
gap> B:=Subgroup(Subgroup(G,[G.1,G.4,G.5]), [G.4]);
 | 
			
		||||
Pcp-group with orders [ 0 ]
 | 
			
		||||
gap> Normalizer(A,B);
 | 
			
		||||
Pcp-group with orders [ 0 ]
 | 
			
		||||
gap> # The following used to trigger the error "arguments must have a common parent group"
 | 
			
		||||
gap> Normalizer(B,A);
 | 
			
		||||
Pcp-group with orders [ 0 ]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
gap> STOP_TEST( "factor.tst", 10000000);
 | 
			
		||||
		Reference in New Issue
	
	Block a user