@testcompare("New York Mets vs Atlanta Braves","Atlanta Braves vs New York Mets",TokenSort(RatcliffObershelp()))≈1.0
@testcompare("New York Mets vs Atlanta Braves","Atlanta Braves vs New York Mets",TokenSort(RatcliffObershelp()))≈1.0
@testcompare(graphemes("New York Mets vs Atlanta Braves"),graphemes("Atlanta Braves vs New York Mets"),Partial(RatcliffObershelp()))≈compare("New York Mets vs Atlanta Braves","Atlanta Braves vs New York Mets",Partial(RatcliffObershelp()))
@testcompare("mariners vs angels","los angeles angels of anaheim at seattle mariners",TokenSet(RatcliffObershelp()))≈1.0-0.09090909090909094
@testcompare("New York Mets vs Atlanta Braves","",TokenSort(RatcliffObershelp()))≈0.0
@testcompare("mariners vs angels","",TokenSet(RatcliffObershelp()))≈0.0
@testcompare("mariners vs angels","los angeles angels at seattle mariners",TokenSet(Partial(RatcliffObershelp())))≈1.0
@testround(Int,100*compare("mariners","mariner are playing tomorrow",TokenMax(RatcliffObershelp())))==79
@testround(Int,100*compare("mariners","mariner are playing tomorrow mariner are playing tomorrow mariner are playing tomorrow mariner are playing tomorrow",Partial(RatcliffObershelp())))==88
@testround(Int,100*compare("mariners","mariner are playing tomorrow mariner are playing tomorrow mariner are playing tomorrow mariner are playing tomorrow",TokenSort(RatcliffObershelp())))==11
@testround(Int,100*compare("mariners","are mariner playing tomorrow",RatcliffObershelp()))==39
@testround(Int,100*compare("mariners","are mariner playing tomorrow",Partial(RatcliffObershelp())))==88
@testround(Int,100*compare("mariners","mariner are playing tomorrow mariner are playing tomorrow mariner are playing tomorrow mariner are playing tomorrow",TokenSet(RatcliffObershelp())))==39
@testround(Int,100*compare("mariners","mariner are playing tomorrow mariner are playing tomorrow mariner are playing tomorrow mariner are playing tomorrow",TokenSet(Partial(RatcliffObershelp()))))==88
@test compare("mariners","mariner are playing tomorrow",TokenMax(RatcliffObershelp()))≈79/100atol=1e-2
@test compare("mariners","mariner are playing tomorrow mariner are playing tomorrow mariner are playing tomorrow mariner are playing tomorrow",Partial(RatcliffObershelp()))≈88/100atol=1e-2
@test compare("mariners","mariner are playing tomorrow mariner are playing tomorrow mariner are playing tomorrow mariner are playing tomorrow",TokenSort(RatcliffObershelp()))≈11/100atol=1e-2
@test compare("mariners","are mariner playing tomorrow",RatcliffObershelp())≈39/100atol=1e-2
@test compare("mariners","are mariner playing tomorrow",Partial(RatcliffObershelp()))≈88/100atol=1e-2
@test compare("mariners","mariner are playing tomorrow mariner are playing tomorrow mariner are playing tomorrow mariner are playing tomorrow",TokenSet(RatcliffObershelp()))≈39/100atol=1e-2
@test compare("mariners","mariner are playing tomorrow mariner are playing tomorrow mariner are playing tomorrow mariner are playing tomorrow",TokenSet(Partial(RatcliffObershelp())))≈88/100atol=1e-2
# not exactly the same because tokenmax has uses the max of rounded tokenset etc
@testround(Int,100*compare("mariners","mariner are playing tomorrow mariner are playing tomorrow mariner are playing tomorrow mariner are playing tomorrow",TokenMax(RatcliffObershelp())))==52
@test compare("mariners","mariner are playing tomorrow mariner are playing tomorrow mariner are playing tomorrow mariner are playing tomorrow",TokenMax(RatcliffObershelp()))≈52/100atol=1e-2