Skip to content

Commit

Permalink
Remove GenericString test for 1 and 0
Browse files Browse the repository at this point in the history
  • Loading branch information
musm authored Jul 15, 2017
1 parent 467738c commit 6e132ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/strings/basic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,8 @@ Base.endof(x::CharStr) = endof(x.chars)
# repeat function
@test repeat("xx",3) == repeat("x",6) == repeat('x',6) == repeat(GenericString("x"), 6) == "xxxxxx"
@test repeat("αα",3) == repeat("α",6) == repeat('α',6) == repeat(GenericString("α"), 6) == "αααααα"
@test repeat("x",1) == repeat('x',1) == "x"^1 == 'x'^1 == GenericString("x")^1 == "x"
@test repeat("x",0) == repeat('x',0) == "x"^0 == 'x'^0 == GenericString("x")^0 == ""
@test repeat("x",1) == repeat('x',1) == "x"^1 == 'x'^1 == "x"
@test repeat("x",0) == repeat('x',0) == "x"^0 == 'x'^0 == ""

# issue #12495: check that logical indexing attempt raises ArgumentError
@test_throws ArgumentError "abc"[[true, false, true]]
Expand Down

0 comments on commit 6e132ae

Please sign in to comment.