Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion maths/modular_inverse.nim
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ when isMainModule:
check modularInverse(17, 17).is_none()

randomize()
const randomTestSize = 1000
const randomTestSize = 10
for testNum in 0..randomTestSize:
let a = rand(-10000000..10000000)
let modulus = rand(1..1000000)
Expand Down
2 changes: 1 addition & 1 deletion strings/check_anagram.nim
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func toLowerUnchecked(c: char): char {.inline.} =
# 0b100_0001, so setting the sixth bit to 1 gives letter's lowercase pair.
char(uint8(c) or 0b0010_0000'u8)

template normalizeChar(c: char) =
template normalizeChar(c: char): char =
## Checks if the character is a letter and lowers its case.
##
## Raises a `ValueError` on other characters.
Expand Down