mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-25 00:35:26 +00:00
Fix spellings (#12277) [backport]
(cherry picked from commit 39290cf88c)
This commit is contained in:
committed by
narimiran
parent
c8314b7c9c
commit
fa7f5742d3
@@ -14,7 +14,7 @@ import os, strutils
|
||||
# 8 - Handle : Invalid Handle
|
||||
|
||||
proc genBadFileName(limit = 100): string =
|
||||
## Generates a filename of a nonexistant file.
|
||||
## Generates a filename of a nonexistent file.
|
||||
## Returns "" if generation fails.
|
||||
result = "a"
|
||||
var hitLimit = true
|
||||
|
||||
@@ -90,7 +90,7 @@ when true:
|
||||
doAssert result.other == node["other"].getBiggestInt()
|
||||
|
||||
# TODO: Test object variant with set in of branch.
|
||||
# TODO: Should we support heterogenous arrays?
|
||||
# TODO: Should we support heterogeneous arrays?
|
||||
|
||||
# Tests that verify the error messages for invalid data.
|
||||
block:
|
||||
|
||||
@@ -35,7 +35,7 @@ when defined(case_testfile): # compiled test file for child process
|
||||
# failed. The shell (and lldb debugger) solves that by inserting a
|
||||
# helpful msg: `segmentation fault` when it detects a signal killed
|
||||
# the child.
|
||||
# todo: expose an API that will show more diagnostic, returing
|
||||
# todo: expose an API that will show more diagnostic, returning
|
||||
# (exitCode, signal) instead of just `shellExitCode`.
|
||||
if true: quit(139)
|
||||
of "exit_recursion": # stack overflow by infinite recursion
|
||||
|
||||
@@ -2,7 +2,7 @@ discard """
|
||||
outputsub: ""
|
||||
"""
|
||||
|
||||
# output not testable because repr prints pointer adresses
|
||||
# output not testable because repr prints pointer addresses
|
||||
# test the new "repr" built-in proc
|
||||
|
||||
type
|
||||
|
||||
@@ -95,7 +95,7 @@ template runTimezoneTests() =
|
||||
|
||||
# Bug with parse not setting DST properly if the current local DST differs from
|
||||
# the date being parsed. Need to test parse dates both in and out of DST. We
|
||||
# are testing that be relying on the fact that tranforming a TimeInfo to a Time
|
||||
# are testing that be relying on the fact that transforming a TimeInfo to a Time
|
||||
# and back again will correctly set the DST value. With the incorrect parse
|
||||
# behavior this will introduce a one hour offset from the named time and the
|
||||
# parsed time if the DST value differs between the current time and the date we
|
||||
@@ -155,7 +155,7 @@ suite "ttimes":
|
||||
# impossible time period
|
||||
check initDateTime(26, mMar, 2017, 02, 30, 00).format(f) ==
|
||||
"2017-03-26 03:30 +02:00"
|
||||
# In case of an ambiguous time, the earlier time is choosen
|
||||
# In case of an ambiguous time, the earlier time is chosen
|
||||
check initDateTime(29, mOct, 2017, 02, 00, 00).format(f) ==
|
||||
"2017-10-29 02:00 +02:00"
|
||||
# These are just dates on either side of the dst switch
|
||||
|
||||
Reference in New Issue
Block a user