-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
21c27f2
commit f7e119f
Showing
5 changed files
with
29 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
{ | ||
"name": "lib" | ||
} | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
test { | ||
let arr = split("a.b.c.e.f.g.h.i.j.k.l.m.n", '.') | ||
@assertion.assert_eq( | ||
arr, | ||
@vec.Vec::["a", "b", "c", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n"], | ||
)? | ||
inspect(sub_string("Hello World", 3, 7), ~content="Some(lo W)")? | ||
("Hello World" |> index_of("Wo") |> @assertion.assert_eq(Some(6)))? | ||
("Hello World World Hello" |> last_index_of("Wo") |> @assertion.assert_eq(Some(12)))? | ||
@assertion.assert_true(contains("Hello World", "Wo"))? | ||
let arr = to_char_array("HelloWorld") | ||
@assertion.assert_eq(arr, ['H', 'e', 'l', 'l', 'o', 'W', 'o', 'r', 'l', 'd'])? | ||
@assertion.assert_eq(char_at("abcde", 4), Some('e'))? | ||
@assertion.assert_eq(trim(" abcde ", ' '), "abcde")? | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.