From c6c0db0232fd71811bc3de4fe2af8f1dfe2afe0f Mon Sep 17 00:00:00 2001 From: Anton Romanov Date: Thu, 2 May 2024 13:32:26 +0400 Subject: [PATCH] #247 -- Add failed test --- src/test/java/ru/ulstu/StreamApiUtilsTest.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/test/java/ru/ulstu/StreamApiUtilsTest.java b/src/test/java/ru/ulstu/StreamApiUtilsTest.java index 5782cbb..417628e 100644 --- a/src/test/java/ru/ulstu/StreamApiUtilsTest.java +++ b/src/test/java/ru/ulstu/StreamApiUtilsTest.java @@ -16,4 +16,12 @@ public class StreamApiUtilsTest { assertEquals(integersInitial, integers); } + + @Test + public void filedTestMappingByDay() { + List integersInitial = List.of(1); + List integers = StreamApiUtils.convert(List.of("1", "2"), Integer::valueOf); + + assertEquals(integersInitial, integers); + } }