Skip to content

Commit

Permalink
ci: add actual tests with birdie (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
miampf authored Jun 5, 2024
1 parent 6351fd2 commit 280f041
Show file tree
Hide file tree
Showing 27 changed files with 528 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
version: 1.1.6
title: Test progress.char_from_string (failure)
file: ./test/glitzer_test.gleam
test_name: progress_char_from_string_fail_test
---
Char("#")
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
version: 1.1.6
title: Test progress.char_from_string (success)
file: ./test/glitzer_test.gleam
test_name: progress_char_from_string_success_test
---
Char("!")
17 changes: 17 additions & 0 deletions birdie_snapshots/test_progress_default_bar.accepted
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
version: 1.1.6
title: Test progress.default_bar
file: ./test/glitzer_test.gleam
test_name: progress_default_bar_test
---
ProgressStyle(
"[",
"]",
Char(" "),
Char("#"),
None,
None,
None,
100,
State(0, False),
)
17 changes: 17 additions & 0 deletions birdie_snapshots/test_progress_fancy_slim_arrow_bar.accepted
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
version: 1.1.6
title: Test progress.fancy_slim_arrow_bar
file: ./test/glitzer_test.gleam
test_name: progress_fancy_slim_arrow_bar_test
---
ProgressStyle(
"",
"",
Char("—"),
Char("—"),
Some(Char("—")),
Some(Char("→")),
Some(Char("→")),
100,
State(0, False),
)
17 changes: 17 additions & 0 deletions birdie_snapshots/test_progress_fancy_slim_bar.accepted
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
version: 1.1.6
title: Test progress.fancy_slim_bar
file: ./test/glitzer_test.gleam
test_name: progress_fancy_slim_bar_test
---
ProgressStyle(
"",
"",
Char("—"),
Char("—"),
Some(Char("—")),
None,
None,
100,
State(0, False),
)
17 changes: 17 additions & 0 deletions birdie_snapshots/test_progress_fancy_thick_bar.accepted
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
version: 1.1.6
title: Test progress.fancy_thick_bar
file: ./test/glitzer_test.gleam
test_name: progress_fancy_thick_bar_test
---
ProgressStyle(
"",
"",
Char("▒"),
Char("█"),
Some(Char("█")),
None,
None,
100,
State(0, False),
)
7 changes: 7 additions & 0 deletions birdie_snapshots/test_progress_map2_iterator.accepted
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
version: 1.1.6
title: Test progress.map2_iterator
file: ./test/glitzer_test.gleam
test_name: progress_map2_iterator_test
---
Iterator(//fn() { ... })
7 changes: 7 additions & 0 deletions birdie_snapshots/test_progress_map_iterator.accepted
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
version: 1.1.6
title: Test progress.map_iterator
file: ./test/glitzer_test.gleam
test_name: progress_map_iterator_test
---
Iterator(//fn() { ... })
17 changes: 17 additions & 0 deletions birdie_snapshots/test_progress_new_bar.accepted
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
version: 1.1.6
title: Test progress.new_bar
file: ./test/glitzer_test.gleam
test_name: progress_new_bar_test
---
ProgressStyle(
"",
"",
Char(" "),
Char(" "),
None,
None,
None,
0,
State(0, False),
)
17 changes: 17 additions & 0 deletions birdie_snapshots/test_progress_slim_bar.accepted
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
version: 1.1.6
title: Test progress.slim_bar
file: ./test/glitzer_test.gleam
test_name: progress_slim_bar_test
---
ProgressStyle(
"",
"",
Char(" "),
Char("—"),
None,
None,
None,
100,
State(0, False),
)
7 changes: 7 additions & 0 deletions birdie_snapshots/test_progress_string_from_char.accepted
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
version: 1.1.6
title: Test progress.string_from_char
file: ./test/glitzer_test.gleam
test_name: progress_string_from_char_test
---
#
17 changes: 17 additions & 0 deletions birdie_snapshots/test_progress_tick.accepted
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
version: 1.1.6
title: Test progress.tick
file: ./test/glitzer_test.gleam
test_name: progress_tick_test
---
ProgressStyle(
"",
"",
Char(" "),
Char(" "),
None,
None,
None,
0,
State(1, False),
)
17 changes: 17 additions & 0 deletions birdie_snapshots/test_progress_tick_bar.accepted
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
version: 1.1.6
title: Test progress.tick_bar
file: ./test/glitzer_test.gleam
test_name: progress_thick_bar_test
---
ProgressStyle(
"",
"",
Char("▒"),
Char("█"),
None,
None,
None,
100,
State(0, False),
)
17 changes: 17 additions & 0 deletions birdie_snapshots/test_progress_tick_by.accepted
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
version: 1.1.6
title: Test progress.tick_by
file: ./test/glitzer_test.gleam
test_name: progress_tick_by_test
---
ProgressStyle(
"",
"",
Char(" "),
Char(" "),
None,
None,
None,
0,
State(10, True),
)
17 changes: 17 additions & 0 deletions birdie_snapshots/test_progress_with_empty.accepted
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
version: 1.1.6
title: Test progress.with_empty
file: ./test/glitzer_test.gleam
test_name: progress_with_empty_test
---
ProgressStyle(
"",
"",
Char("#"),
Char(" "),
None,
None,
None,
0,
State(0, False),
)
17 changes: 17 additions & 0 deletions birdie_snapshots/test_progress_with_fill.accepted
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
version: 1.1.6
title: Test progress.with_fill
file: ./test/glitzer_test.gleam
test_name: progress_with_fill_test
---
ProgressStyle(
"",
"",
Char(" "),
Char("#"),
None,
None,
None,
0,
State(0, False),
)
17 changes: 17 additions & 0 deletions birdie_snapshots/test_progress_with_fill_finished.accepted
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
version: 1.1.6
title: Test progress.with_fill_finished
file: ./test/glitzer_test.gleam
test_name: progress_with_fill_finished_test
---
ProgressStyle(
"",
"",
Char(" "),
Char(" "),
Some(Char("#")),
None,
None,
0,
State(0, False),
)
17 changes: 17 additions & 0 deletions birdie_snapshots/test_progress_with_fill_head.accepted
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
version: 1.1.6
title: Test progress.with_fill_head
file: ./test/glitzer_test.gleam
test_name: progress_with_fill_head_test
---
ProgressStyle(
"",
"",
Char(" "),
Char(" "),
None,
Some(Char("#")),
None,
0,
State(0, False),
)
17 changes: 17 additions & 0 deletions birdie_snapshots/test_progress_with_fill_head_finished.accepted
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
version: 1.1.6
title: Test progress.with_fill_head_finished
file: ./test/glitzer_test.gleam
test_name: progress_with_fill_head_finished_test
---
ProgressStyle(
"",
"",
Char(" "),
Char(" "),
Some(Char("#")),
None,
None,
0,
State(0, False),
)
17 changes: 17 additions & 0 deletions birdie_snapshots/test_progress_with_left_text.accepted
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
version: 1.1.6
title: Test progress.with_left_text
file: ./test/glitzer_test.gleam
test_name: progress_with_left_text_test
---
ProgressStyle(
"asdf",
"",
Char(" "),
Char(" "),
None,
None,
None,
0,
State(0, False),
)
17 changes: 17 additions & 0 deletions birdie_snapshots/test_progress_with_length.accepted
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
version: 1.1.6
title: Test progress.with_length
file: ./test/glitzer_test.gleam
test_name: progress_with_length_test
---
ProgressStyle(
"",
"",
Char(" "),
Char(" "),
None,
None,
None,
100,
State(0, False),
)
17 changes: 17 additions & 0 deletions birdie_snapshots/test_progress_with_right_text.accepted
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
version: 1.1.6
title: Test progress.with_right_text
file: ./test/glitzer_test.gleam
test_name: progress_with_right_text_test
---
ProgressStyle(
"",
"asdf",
Char(" "),
Char(" "),
None,
None,
None,
0,
State(0, False),
)
17 changes: 17 additions & 0 deletions birdie_snapshots/test_progresss_finish.accepted
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
version: 1.1.6
title: Test progresss.finish
file: ./test/glitzer_test.gleam
test_name: progress_finish_test
---
ProgressStyle(
"",
"",
Char(" "),
Char(" "),
None,
None,
None,
100,
State(101, True),
)
2 changes: 2 additions & 0 deletions gleam.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ gleam_community_ansi = ">= 1.4.0 and < 2.0.0"

[dev-dependencies]
gleeunit = ">= 1.0.0 and < 2.0.0"
pprint = ">= 1.0.3 and < 2.0.0"
birdie = ">= 1.1.6 and < 2.0.0"
Loading

0 comments on commit 280f041

Please sign in to comment.