23 lines
472 B
Gleam
23 lines
472 B
Gleam
import gleeunit
|
|
import helpers
|
|
import luma_markdown
|
|
|
|
pub fn main() -> Nil {
|
|
gleeunit.main()
|
|
}
|
|
|
|
// gleeunit test functions end in `_test`
|
|
pub fn hello_world_test() {
|
|
let name = "Joe"
|
|
let greeting = "Hello, " <> name <> "!"
|
|
|
|
assert greeting == "Hello, Joe!"
|
|
}
|
|
|
|
pub fn renders_plain_and_marked_lines_test() {
|
|
let information = helpers.Information(1, 1)
|
|
|
|
assert luma_markdown.luma_markdown(information, " plain text \n!2 marked")
|
|
== "plain text\n**marked"
|
|
}
|