Skip to content

Commit 55010fe

Browse files
committed
New tests
1 parent b4d4766 commit 55010fe

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

test/gleam/bit_builder_test.gleam

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,9 @@ pub fn from_string_test() {
7373
|> bit_builder.to_bit_string
7474
|> should.equal(<<>>)
7575
}
76+
77+
pub fn new_test() {
78+
bit_builder.new()
79+
|> bit_builder.to_bit_string
80+
|> should.equal(<<>>)
81+
}

test/gleam/string_builder_test.gleam

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,9 @@ pub fn is_empty_test() {
100100
|> string_builder.is_empty
101101
|> should.be_true
102102
}
103+
104+
pub fn new_test() {
105+
string_builder.new()
106+
|> string_builder.to_string
107+
|> should.equal("")
108+
}

0 commit comments

Comments
 (0)