summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorFederico Ceratto <federico.ceratto@gmail.com>2016-02-29 11:25:51 +0000
committerFederico Ceratto <federico.ceratto@gmail.com>2016-02-29 11:25:51 +0000
commitd9cb85c2d81a447130307d0004b0ef515f3ff241 (patch)
treeef91d7dd981d91b4632cc1c9a0069d28a75464ce /tests
parentbd95bf58bfab31034db346d946e8e3b6bb5d19cc (diff)
downloadNim-d9cb85c2d81a447130307d0004b0ef515f3ff241.tar.gz
Spellcheck
Diffstat (limited to 'tests')
-rw-r--r--tests/stdlib/nre/init.nim2
-rw-r--r--tests/tuples/tuple_with_nil.nim4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/stdlib/nre/init.nim b/tests/stdlib/nre/init.nim
index 1a1470842..26e668104 100644
--- a/tests/stdlib/nre/init.nim
+++ b/tests/stdlib/nre/init.nim
@@ -2,7 +2,7 @@ import unittest
 include nre
 
 suite "Test NRE initialization":
-  test "correct intialization":
+  test "correct initialization":
     check(re("[0-9]+") != nil)
     check(re("(?i)[0-9]+") != nil)
 
diff --git a/tests/tuples/tuple_with_nil.nim b/tests/tuples/tuple_with_nil.nim
index 26e4ae85e..442fbab92 100644
--- a/tests/tuples/tuple_with_nil.nim
+++ b/tests/tuples/tuple_with_nil.nim
@@ -345,7 +345,7 @@ proc writeformat(o: var Writer; p: pointer; fmt: Format) =
   ## Write pointer `i` according to format `fmt` using output object
   ## `o` and output function `add`.
   ##
-  ## Pointers are casted to unsigned int and formated as hexadecimal
+  ## Pointers are casted to unsigned int and formatted as hexadecimal
   ## with prefix unless specified otherwise.
   var f = fmt
   if f.typ == 0.char:
@@ -584,7 +584,7 @@ proc splitfmt(s: string): seq[Part] {.compiletime, nosideeffect.} =
   ## Each part is either a literal string or a format specification. A
   ## format specification is a substring of the form
   ## "{[arg][:format]}" where `arg` is either empty or a number
-  ## refering to the arg-th argument and an additional field or array
+  ## referring to the arg-th argument and an additional field or array
   ## index. The format string is a string accepted by `parse`.
   let subpeg = sequence(capture(digits()),
                           capture(?sequence(charSet({'.'}), *pegs.identStartChars(), *identChars())),