added sequence tests
This commit is contained in:
		
							
								
								
									
										4
									
								
								tests/sequence/tips/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								tests/sequence/tips/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| # generated by tytanic, do not edit | ||||
|  | ||||
| diff/** | ||||
| out/** | ||||
							
								
								
									
										
											BIN
										
									
								
								tests/sequence/tips/ref/1.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								tests/sequence/tips/ref/1.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 24 KiB | 
							
								
								
									
										
											BIN
										
									
								
								tests/sequence/tips/ref/2.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								tests/sequence/tips/ref/2.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 24 KiB | 
							
								
								
									
										
											BIN
										
									
								
								tests/sequence/tips/ref/3.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								tests/sequence/tips/ref/3.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 26 KiB | 
							
								
								
									
										84
									
								
								tests/sequence/tips/test.typ
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										84
									
								
								tests/sequence/tips/test.typ
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,84 @@ | ||||
| #set page(width: auto, height: auto) | ||||
| #import "/src/lib.typ": * | ||||
|  | ||||
| #diagram({ | ||||
|   _par("a", display-name: "Alice") | ||||
|   _par("b", display-name: "Bob") | ||||
|  | ||||
|   _seq("a", "b", end-tip: ">", comment: `->`) | ||||
|   _seq("a", "b", end-tip: ">>", comment: `->>`) | ||||
|   _seq("a", "b", end-tip: "\\", comment: `-\`) | ||||
|   _seq("a", "b", end-tip: "\\\\", comment: `-\\`) | ||||
|   _seq("a", "b", end-tip: "/", comment: `-/`) | ||||
|   _seq("a", "b", end-tip: "//", comment: `-//`) | ||||
|   _seq("a", "b", end-tip: "x", comment: `->x`) | ||||
|   _seq("a", "b", start-tip: "x", comment: `x->`) | ||||
|   _seq("a", "b", start-tip: "o", comment: `o->`) | ||||
|   _seq("a", "b", end-tip: ("o", ">"), comment: `->o`) | ||||
|   _seq("a", "b", start-tip: "o", end-tip: ("o", ">"), comment: `o->o`) | ||||
|   _seq("a", "b", start-tip: ">", end-tip: ">", comment: `<->`) | ||||
|   _seq("a", "b", start-tip: ("o", ">"), end-tip: ("o", ">"), comment: `o<->o`) | ||||
|   _seq("a", "b", start-tip: "x", end-tip: "x", comment: `x<->x`) | ||||
|   _seq("a", "b", end-tip: ("o", ">>"), comment: `->>o`) | ||||
|   _seq("a", "b", end-tip: ("o", "\\"), comment: `-\o`) | ||||
|   _seq("a", "b", end-tip: ("o", "\\\\"), comment: `-\\o`) | ||||
|   _seq("a", "b", end-tip: ("o", "/"), comment: `-/o`) | ||||
|   _seq("a", "b", end-tip: ("o", "//"), comment: `-//o`) | ||||
|   _seq("a", "b", start-tip: "x", end-tip: ("o", ">"), comment: `x->o`) | ||||
| }) | ||||
|  | ||||
| #pagebreak() | ||||
|  | ||||
| #diagram({ | ||||
|   _par("a", display-name: "Alice") | ||||
|   _par("b", display-name: "Bob") | ||||
|  | ||||
|   _seq("b", "a", end-tip: ">", comment: `->`) | ||||
|   _seq("b", "a", end-tip: ">>", comment: `->>`) | ||||
|   _seq("b", "a", end-tip: "\\", comment: `-\`) | ||||
|   _seq("b", "a", end-tip: "\\\\", comment: `-\\`) | ||||
|   _seq("b", "a", end-tip: "/", comment: `-/`) | ||||
|   _seq("b", "a", end-tip: "//", comment: `-//`) | ||||
|   _seq("b", "a", end-tip: "x", comment: `->x`) | ||||
|   _seq("b", "a", start-tip: "x", comment: `x->`) | ||||
|   _seq("b", "a", start-tip: "o", comment: `o->`) | ||||
|   _seq("b", "a", end-tip: ("o", ">"), comment: `->o`) | ||||
|   _seq("b", "a", start-tip: "o", end-tip: ("o", ">"), comment: `o->o`) | ||||
|   _seq("b", "a", start-tip: ">", end-tip: ">", comment: `<->`) | ||||
|   _seq("b", "a", start-tip: ("o", ">"), end-tip: ("o", ">"), comment: `o<->o`) | ||||
|   _seq("b", "a", start-tip: "x", end-tip: "x", comment: `x<->x`) | ||||
|   _seq("b", "a", end-tip: ("o", ">>"), comment: `->>o`) | ||||
|   _seq("b", "a", end-tip: ("o", "\\"), comment: `-\o`) | ||||
|   _seq("b", "a", end-tip: ("o", "\\\\"), comment: `-\\o`) | ||||
|   _seq("b", "a", end-tip: ("o", "/"), comment: `-/o`) | ||||
|   _seq("b", "a", end-tip: ("o", "//"), comment: `-//o`) | ||||
|   _seq("b", "a", start-tip: "x", end-tip: ("o", ">"), comment: `x->o`) | ||||
| }) | ||||
|  | ||||
| #pagebreak() | ||||
|  | ||||
| #diagram({ | ||||
|   _par("a", display-name: "Alice") | ||||
|   _par("b", display-name: "Bob") | ||||
|  | ||||
|   _seq("a", "a", end-tip: ">", comment: `->`) | ||||
|   _seq("a", "a", end-tip: ">>", comment: `->>`) | ||||
|   _seq("a", "a", end-tip: "\\", comment: `-\`) | ||||
|   _seq("a", "a", end-tip: "\\\\", comment: `-\\`) | ||||
|   _seq("a", "a", end-tip: "/", comment: `-/`) | ||||
|   _seq("a", "a", end-tip: "//", comment: `-//`) | ||||
|   _seq("a", "a", end-tip: "x", comment: `->x`) | ||||
|   _seq("a", "a", start-tip: "x", comment: `x->`) | ||||
|   _seq("a", "a", start-tip: "o", comment: `o->`) | ||||
|   _seq("a", "a", end-tip: ("o", ">"), comment: `->o`) | ||||
|   _seq("a", "a", start-tip: "o", end-tip: ("o", ">"), comment: `o->o`) | ||||
|   _seq("a", "a", start-tip: ">", end-tip: ">", comment: `<->`) | ||||
|   _seq("a", "a", start-tip: ("o", ">"), end-tip: ("o", ">"), comment: `o<->o`) | ||||
|   _seq("a", "a", start-tip: "x", end-tip: "x", comment: `x<->x`) | ||||
|   _seq("a", "a", end-tip: ("o", ">>"), comment: `->>o`) | ||||
|   _seq("a", "a", end-tip: ("o", "\\"), comment: `-\o`) | ||||
|   _seq("a", "a", end-tip: ("o", "\\\\"), comment: `-\\o`) | ||||
|   _seq("a", "a", end-tip: ("o", "/"), comment: `-/o`) | ||||
|   _seq("a", "a", end-tip: ("o", "//"), comment: `-//o`) | ||||
|   _seq("a", "a", start-tip: "x", end-tip: ("o", ">"), comment: `x->o`) | ||||
| }) | ||||
		Reference in New Issue
	
	Block a user