Skip to content

Commit

Permalink
Update test/strings/basic.jl
Browse files Browse the repository at this point in the history
Fixes equality operator in first test of "cwstring" testset

Co-authored-by: Sukera <[email protected]>
  • Loading branch information
rileysheridan and Seelengrab authored Oct 18, 2024
1 parent ede99f4 commit 4bd0536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/strings/basic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1419,7 +1419,7 @@ end
str_2 = "Wordu\000"
# "Regular" string with UTF-8 characters of differing byte counts
str_3 = "aܣ𒀀"
@test Base.cwstring(str_0) = UInt16[0x0000]
@test Base.cwstring(str_0) == UInt16[0x0000]
@test_throws ArgumentError Base.cwstring(str_1)
@test Base.cwstring(str_2) == UInt16[0x0057, 0x006f, 0x0072, 0x0064, 0x0000]
@test Base.cwstring(str_3) == UInt16[0x0061, 0x0723, 0xd808, 0xdc00, 0x0000]
Expand Down

0 comments on commit 4bd0536

Please sign in to comment.