Skip to content

Commit

Permalink
Correct embarrassing length typo
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhurford committed Feb 12, 2016
1 parent f4db12a commit 585af6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ random_string <- ensure(
length > 0),
post = list(result %is% simple_string, nchar(result) == length),
function(length, alphabet) {
paste0(sample(alphabet, 10, replace = TRUE), collapse = "")
paste0(sample(alphabet, length, replace = TRUE), collapse = "")
})
```

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-ensure.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ random_string <- ensure(
length > 0),
post = list(result %is% simple_string, nchar(result) == length),
function(length, alphabet) {
paste0(sample(alphabet, 10, replace = TRUE), collapse = "")
paste0(sample(alphabet, length, replace = TRUE), collapse = "")
})

describe("classes", {
Expand Down

0 comments on commit 585af6d

Please sign in to comment.