Skip to content

Commit

Permalink
reintroduce tests
Browse files Browse the repository at this point in the history
  • Loading branch information
miampf committed Nov 30, 2024
1 parent 5d2b309 commit 5d82d67
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/glitzer_test.gleam
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import gleam/iterator
import gleam/yielder
import gleeunit

Expand Down Expand Up @@ -149,6 +150,23 @@ pub fn progress_finish_test() {
|> birdie.snap(title: "Test progresss.finish")
}

pub fn progress_map_iterator_test() {
let bar = progress.new_bar()
iterator.empty()
|> progress.map_iterator(bar, fn(_, _) { progress.print_bar(bar) })
|> pprint.format
|> birdie.snap(title: "Test progress.map_iterator")
}

pub fn progress_map2_iterator_test() {
let bar = progress.new_bar()
let i1 = iterator.empty()
let i2 = iterator.empty()
progress.map2_iterator(i1, i2, bar, fn(_, _, _) { progress.print_bar(bar) })
|> pprint.format
|> birdie.snap(title: "Test progress.map2_iterator")
}

pub fn progress_map_yielder_test() {
let bar = progress.new_bar()
yielder.empty()
Expand Down

0 comments on commit 5d82d67

Please sign in to comment.