ROOTPLOIT
Server: LiteSpeed
System: Linux in-mum-web1878.main-hosting.eu 5.14.0-570.21.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 11 07:22:35 EDT 2025 x86_64
User: u435929562 (435929562)
PHP: 7.4.33
Disabled: system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //proc/self/root/opt/go/pkg/mod/github.com/prometheus/[email protected]/ui/app/tests/Match.elm
module Match exposing (testConsecutiveChars, testJaroWinkler)

import Expect
import Test exposing (..)
import Utils.Match exposing (consecutiveChars, jaroWinkler)


testJaroWinkler : Test
testJaroWinkler =
    describe "jaroWinkler"
        [ test "should find the right values 1" <|
            \() ->
                Expect.greaterThan (jaroWinkler "zi" "zone")
                    (jaroWinkler "zo" "zone")
        , test "should find the right values 2" <|
            \() ->
                Expect.greaterThan (jaroWinkler "hook" "alertname")
                    (jaroWinkler "de" "dev")
        , test "should find the right values 3" <|
            \() ->
                Expect.equal 0.0
                    (jaroWinkler "l" "zone")
        , test "should find the right values 4" <|
            \() ->
                Expect.equal 1.0
                    (jaroWinkler "zone" "zone")
        , test "should find the right values 5" <|
            \() ->
                Expect.greaterThan 0.688
                    (jaroWinkler "atleio3tefdoisahdf" "attributefdoiashfoihfeowfh9w8f9afaw9fahw")
        ]


testConsecutiveChars : Test
testConsecutiveChars =
    describe "consecutiveChars"
        [ test "should find the consecutiveChars 1" <|
            \() ->
                Expect.equal "zo"
                    (consecutiveChars "zo" "bozo")
        , test "should find the consecutiveChars 2" <|
            \() ->
                Expect.equal "zo"
                    (consecutiveChars "zol" "zone")
        , test "should find the consecutiveChars 3" <|
            \() ->
                Expect.equal "oon"
                    (consecutiveChars "oon" "baboone")
        , test "should find the consecutiveChars 4" <|
            \() ->
                Expect.equal "dom"
                    (consecutiveChars "dom" "random")
        ]