Skip to content

Commit 6463816

Browse files
test(libmake): ✅ add new tests and refactoring
1 parent a926ce1 commit 6463816

File tree

11 files changed

+51
-12
lines changed

11 files changed

+51
-12
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ log = {version="0.4.21", features = ["std"] }
7171
regex = "1.10.4"
7272
reqwest = { version = "0.12.4", features = ["blocking"] }
7373
rlg = "0.0.4"
74-
serde = { version = "1.0.201", features = ["derive"] }
74+
serde = { version = "1.0.202", features = ["derive"] }
7575
serde_ini = "0.2.0"
7676
serde_json = "1.0.117"
77-
serde_yml = "0.0.5"
77+
serde_yml = "0.0.7"
7878
tempfile = "3.10.1"
79-
toml = "0.8.12"
79+
toml = "0.8.13"
8080
uuid = { version = "1.8.0", features = ["v4"] }
8181
vrd = "0.0.7"
8282

tests/generators/mod.rs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Copyright notice and licensing information.
2+
// These lines indicate the copyright of the software and its licensing terms.
3+
// SPDX-License-Identifier: Apache-2.0 OR MIT indicates dual licensing under Apache 2.0 or MIT licenses.
4+
// Copyright © 2023-2024 LibMake. All rights reserved.
5+
6+
/// The `test_ascii` module contains functionality for generating ASCII art from
7+
/// text using the FIGlet library.
8+
pub mod test_ascii;
9+
10+
/// The `test_args` module contains functionality for parsing command-line arguments.
11+
pub mod test_args;
12+
13+
/// The `test_csv` module contains functionality for parsing CSV files.
14+
pub mod test_csv;
15+
16+
/// The `test_ini` module contains functionality for parsing INI files.
17+
pub mod test_ini;
18+
19+
/// The `test_json` module contains functionality for parsing JSON files.
20+
pub mod test_json;
21+
22+
/// The `test_toml` module contains functionality for parsing TOML files.
23+
pub mod test_toml;
24+
25+
/// The `test_yaml` module contains functionality for parsing YAML files.
26+
pub mod test_yaml;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/macros/test_ascii_macros.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@ mod tests {
99
}
1010

1111
#[test]
12-
#[should_panic(expected = "Failed to generate ASCII art: Failed to convert text to ASCII art")]
12+
#[should_panic(
13+
expected = "Failed to generate ASCII art: Failed to convert text to ASCII art"
14+
)]
1315
fn test_macro_ascii_empty_input() {
1416
let _art = macro_ascii!("");
1517
}
1618

1719
#[test]
18-
#[should_panic(expected = "Failed to generate ASCII art: Failed to convert text to ASCII art")]
20+
#[should_panic(
21+
expected = "Failed to generate ASCII art: Failed to convert text to ASCII art"
22+
)]
1923
fn test_macro_ascii_invalid_input() {
2024
let _art = macro_ascii!("🦀");
2125
}

0 commit comments

Comments
 (0)