From 9a2b7fa572f1ecde831bdf60d4ce63f0f9a82c66 Mon Sep 17 00:00:00 2001 From: Daniel Frederico Lins Leite Date: Wed, 30 Aug 2023 13:53:29 +0100 Subject: [PATCH] fix String tests --- sway-lib-std/src/string.sw | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sway-lib-std/src/string.sw b/sway-lib-std/src/string.sw index f195dae9ea7..06220c7cd69 100644 --- a/sway-lib-std/src/string.sw +++ b/sway-lib-std/src/string.sw @@ -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);