+2
-2
gleam.toml
+2
-2
gleam.toml
···
1
1
name = "xmleam"
2
-
version = "1.0.1"
2
+
version = "1.0.2"
3
3
4
4
# Fill out these fields if you intend to generate HTML documentation or publish
5
5
# your project to the Hex package manager.
6
6
#
7
-
description = "A simple builder for XML"
7
+
description = "A lean builder for XML all for Gleam"
8
8
licences = ["Apache-2.0"]
9
9
repository = { type = "github", user = "tovedetered", repo = "xmleam" }
10
10
# links = [{ title = "Website", href = "https://gleam.run" }]
+1
-1
src/xmleam.gleam
+1
-1
src/xmleam.gleam
+8
test/xmleam_test.gleam
+8
test/xmleam_test.gleam
···
1
1
import gleeunit
2
2
import gleeunit/should
3
+
import xmleam/builder
4
+
import gleam/result
3
5
4
6
pub fn main() {
5
7
gleeunit.main()
···
10
12
1
11
13
|> should.equal(1)
12
14
}
15
+
16
+
pub fn xml_test() {
17
+
builder.xml("1.0", "UTF-8", [""])
18
+
|> result.unwrap("Frick")
19
+
|> should.equal("<?xml version=\"1.0\" encoding=\"UTF-8\"?> \n")
20
+
}