brilo/test/brilo_test.gleam

20 lines
317 B
Gleam
Raw Normal View History

import brilo
import gleam/iterator
import gleam/string
2024-09-13 08:12:16 +02:00
import gleeunit
import gleeunit/should
pub fn main() {
gleeunit.main()
}
pub fn iterator_from_string_test() {
let string = "BRILO RULEZ! 🎆"
string
|> brilo.iterator_from_string
|> iterator.to_list
|> string.join("")
|> should.equal(string)
2024-09-13 08:12:16 +02:00
}