From 924b10b0cd6c09fa7afa58e6f7a068646d1e56af Mon Sep 17 00:00:00 2001 From: Joris Date: Mon, 14 Oct 2024 22:30:47 +0200 Subject: Use nom to parse lines --- src/util/serialization.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/util') 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" + ); } } -- cgit v1.2.3