Skip to content

Commit 218b2f7

Browse files
committed
use obj.output which is the API to compose
1 parent 9b55fc2 commit 218b2f7

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

builtin/char_test.mbt

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ test "char subtraction" {
1919
inspect!(b - a, content="1")
2020
}
2121

22-
22+
///|
2323
test "char show" {
2424
assert_eq!('\b'.to_string(), "\u0008")
2525
// assert_eq!('\b'.to_string(), "\u{8}")
@@ -31,4 +31,3 @@ test "char show" {
3131
assert_eq!('\u0002'.to_string(), "\u0002")
3232
assert_eq!('\b'.to_string().escape(), "\"\\b\"")
3333
}
34-

builtin/stringbuilder.mbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub fn StringBuilder::write_object[T : Show](
1717
self : StringBuilder,
1818
obj : T
1919
) -> Unit {
20-
self.write_string(obj.to_string())
20+
obj.output(self)
2121
}
2222

2323
///|

immut/sorted_map/utils_test.mbt

+5-5
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ test "iter" {
8080
inspect!(
8181
buf,
8282
content=
83-
#|0: zero
84-
#|1: one
85-
#|2: two
86-
#|3: three
87-
#|8: eight
83+
#|0: "zero"
84+
#|1: "one"
85+
#|2: "two"
86+
#|3: "three"
87+
#|8: "eight"
8888
#|(0, "zero")
8989
#|(1, "one")
9090
#|(2, "two")

0 commit comments

Comments
 (0)