From 1ef58ccf72b96b01e168721e2a4578b35ee446f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Wa=C5=9Bko?= Date: Wed, 13 Apr 2022 14:48:54 +0200 Subject: [PATCH] Fix Utils_Spec --- test/Tests/src/Data/Text/Utils_Spec.enso | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Tests/src/Data/Text/Utils_Spec.enso b/test/Tests/src/Data/Text/Utils_Spec.enso index 11c4e413343d..0342d46fe96b 100644 --- a/test/Tests/src/Data/Text/Utils_Spec.enso +++ b/test/Tests/src/Data/Text/Utils_Spec.enso @@ -52,10 +52,10 @@ spec = codeunits = Vector.new folded.getFoldedString.utf_16.length+1 ix->ix grapheme_ixes = codeunits.map ix-> - folded.codeUnitToGraphemeIndex ix + folded.findGrapheme ix . index grapheme_ixes . should_equal [0, 0, 1, 2, 3, 3, 4, 4, 4, 5, 6] - Test.expect_panic_with (folded.codeUnitToGraphemeIndex -1) Polyglot_Error - Test.expect_panic_with (folded.codeUnitToGraphemeIndex folded.getFoldedString.utf_16.length+1) Polyglot_Error + Test.expect_panic_with (folded.findGrapheme -1) Polyglot_Error + Test.expect_panic_with (folded.findGrapheme folded.getFoldedString.utf_16.length+1) Polyglot_Error main = Test.Suite.run_main here.spec