Skip to content

Commit

Permalink
fix String tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xunilrj committed Aug 30, 2023
1 parent 6b0aa77 commit 9a2b7fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sway-lib-std/src/string.sw
Original file line number Diff line number Diff line change
Expand Up @@ -456,9 +456,9 @@ fn string_test_with_capacity() {

#[test]
fn string_test_equal() {
let string1 = String::from_ascii_str("fuel");
let string2 = String::from_ascii_str("fuel");
let string3 = String::from_ascii_str("blazingly fast");
let string1 = String::from_str("fuel");
let string2 = String::from_str("fuel");
let string3 = String::from_str("blazingly fast");

assert(string1 == string2);
assert(string1 != string3);
Expand Down

0 comments on commit 9a2b7fa

Please sign in to comment.