Skip to content

Commit 759dba3

Browse files
committed
Remove (c)transpose no-op for Strings and revise associated test.
1 parent 060a51c commit 759dba3

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

base/strings/basic.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ function length(s::AbstractString)
101101
end
102102
end
103103

104-
transpose(s::AbstractString) = s
105-
106104
## string comparison functions ##
107105

108106
function cmp(a::AbstractString, b::AbstractString)

test/strings/basic.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ foobaz(ch) = reinterpret(Char, typemax(UInt32))
464464

465465
@test "a".*["b","c"] == ["ab","ac"]
466466
@test ["b","c"].*"a" == ["ba","ca"]
467-
@test ["a","b"].*["c","d"]' == ["ac" "ad"; "bc" "bd"]
467+
@test ["a","b"].*["c" "d"] == ["ac" "ad"; "bc" "bd"]
468468

469469
# Make sure NULL pointers are handled consistently by String
470470
@test_throws ArgumentError unsafe_string(Ptr{UInt8}(0))

0 commit comments

Comments
 (0)