Initial commit with Nimble library template and RFCs.
This commit is contained in:
		
							
								
								
									
										1851
									
								
								doc/rfc2425.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1851
									
								
								doc/rfc2425.txt
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										2355
									
								
								doc/rfc2426.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2355
									
								
								doc/rfc2426.txt
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										4147
									
								
								doc/rfc6350.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4147
									
								
								doc/rfc6350.txt
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										12
									
								
								nim_vcard.nimble
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								nim_vcard.nimble
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
				
			|||||||
 | 
					# Package
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					version       = "0.1.0"
 | 
				
			||||||
 | 
					author        = "Jonathan Bernard"
 | 
				
			||||||
 | 
					description   = "Nim parser for the vCard format (versions 3.0 and 4.0)."
 | 
				
			||||||
 | 
					license       = "MIT"
 | 
				
			||||||
 | 
					srcDir        = "src"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Dependencies
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					requires "nim >= 1.6.6"
 | 
				
			||||||
							
								
								
									
										7
									
								
								src/nim_vcard.nim
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								src/nim_vcard.nim
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
				
			|||||||
 | 
					# This is just an example to get you started. A typical library package
 | 
				
			||||||
 | 
					# exports the main API in this file. Note that you cannot rename this file
 | 
				
			||||||
 | 
					# but you can remove it if you wish.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					proc add*(x, y: int): int =
 | 
				
			||||||
 | 
					  ## Adds two files together.
 | 
				
			||||||
 | 
					  return x + y
 | 
				
			||||||
							
								
								
									
										1
									
								
								tests/config.nims
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								tests/config.nims
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
				
			|||||||
 | 
					switch("path", "$projectDir/../src")
 | 
				
			||||||
							
								
								
									
										12
									
								
								tests/test1.nim
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								tests/test1.nim
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
				
			|||||||
 | 
					# This is just an example to get you started. You may wish to put all of your
 | 
				
			||||||
 | 
					# tests into a single file, or separate them into multiple `test1`, `test2`
 | 
				
			||||||
 | 
					# etc. files (better names are recommended, just make sure the name starts with
 | 
				
			||||||
 | 
					# the letter 't').
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# To run these tests, simply execute `nimble test`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import unittest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import nim_vcard
 | 
				
			||||||
 | 
					test "can add":
 | 
				
			||||||
 | 
					  check add(5, 5) == 10
 | 
				
			||||||
		Reference in New Issue
	
	Block a user