From 82577e7fd479a27e46be56710730454d096b1e73 Mon Sep 17 00:00:00 2001 From: GHTaarn <62629455+GHTaarn@users.noreply.github.com> Date: Tue, 20 Feb 2024 07:08:43 +0100 Subject: [PATCH] More tests for 14.longest-common-prefix.jl --- test/problems/14.longest-common-prefix.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/problems/14.longest-common-prefix.jl b/test/problems/14.longest-common-prefix.jl index f21db06db..686a09db9 100644 --- a/test/problems/14.longest-common-prefix.jl +++ b/test/problems/14.longest-common-prefix.jl @@ -2,4 +2,7 @@ @test longest_common_prefix(["flower", "flow", "flight"]) == "fl" @test longest_common_prefix(["dog", "racecar", "car"]) == "" @test longest_common_prefix(["reflower", "flow", "flight"]) == "" + @test longest_common_prefix(["abc"]) == "abc" + @test longest_common_prefix(fill("abc", 5)) == "abc" + @test longest_common_prefix(fill("", 4)) == "" end