aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorJoris2024-10-14 22:30:47 +0200
committerJoris2024-10-14 22:30:47 +0200
commit924b10b0cd6c09fa7afa58e6f7a068646d1e56af (patch)
tree3f20b5db131e54ceb73f6e2b932525e9fe6f2c63 /src/util
parenta126fba82cb4f9f4467b130fca7fd5a269fe3a5e (diff)
Use nom to parse linesmain
Diffstat (limited to 'src/util')
-rw-r--r--src/util/serialization.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util/serialization.rs b/src/util/serialization.rs
index 189a41a..a8b5438 100644
--- a/src/util/serialization.rs
+++ b/src/util/serialization.rs
@@ -23,6 +23,9 @@ mod tests {
#[test]
fn test_words_to_line() {
assert_eq!(words_to_line(&["a".to_string()]), "a");
- assert_eq!(words_to_line(&["a".to_string(), "b".to_string(), "c".to_string()]), "a | b | c");
+ assert_eq!(
+ words_to_line(&["a".to_string(), "b".to_string(), "c".to_string()]),
+ "a | b | c"
+ );
}
}