Skip to content

Commit

Permalink
fix test after merge
Browse files Browse the repository at this point in the history
Signed-off-by: martinvuyk <martin.vuyklop@gmail.com>
  • Loading branch information
martinvuyk committed Feb 25, 2025
1 parent 75de079 commit a3781cf
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions stdlib/test/collections/string/test_string.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# ===----------------------------------------------------------------------=== #
# RUN: %mojo %s

from collections.string import StringSlice
from collections.string.string import (
_calc_initial_buffer_size_int32,
_calc_initial_buffer_size_int64,
Expand Down Expand Up @@ -822,11 +821,13 @@ def test_splitlines():

for i in List(next_line, unicode_line_sep, unicode_paragraph_sep):
u = i[]
item = String("").join("hello", u, "world", u, "mojo", u, "language", u)
assert_equal(item.splitlines(), hello_mojo)
item = "".join("hello", u, "world", u, "mojo", u, "language", u)
assert_equal(item.splitlines().__str__(), hello_mojo.__str__())
assert_equal(
item.splitlines(keepends=True),
L("hello" + u, "world" + u, "mojo" + u, "language" + u),
item.splitlines(keepends=True).__str__(),
List(
"hello" + u, "world" + u, "mojo" + u, "language" + u
).__str__(),
)


Expand Down

0 comments on commit a3781cf

Please sign in to comment.