Skip to content

Commit

Permalink
fix string.fmt tests
Browse files Browse the repository at this point in the history
  • Loading branch information
StunxFS committed Nov 11, 2023
1 parent 184b2cc commit a733624
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/core/tests/string_test.ri
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ test "string.fmt()" {
"reverse order: {2}, {1}, {0}".fmt(1, 2, 3) == "reverse order: 3, 2, 1"
);

//@assert("rune: `{}`".fmt('Á') == "rune: `Á`");
// FIXME: fix len 10 != 9 -> @assert("rune: `{}`".fmt('Á') == "rune: `Á`");

@assert("{0:-4}k".fmt(1) == "1 k");
@assert("{:4}k".fmt(2004) == "2004k");
@assert("{:4}k".fmt(20) == "20 k");
@assert("{:4}k".fmt(2004) == "20 k");
@assert("{:4}k".fmt(20) == " 20k");
@assert("{:4}k".fmt(2004) == "2004k");
@assert("|{:2}|".fmt(2222) == "|2222|");
}

Expand Down

0 comments on commit a733624

Please sign in to comment.