fuzzyGet to get bestMatch and value in ifLet at the same time
This commit is contained in:
5
src/test/cases/FuzzyMapTestCase.kiss
Normal file
5
src/test/cases/FuzzyMapTestCase.kiss
Normal file
@@ -0,0 +1,5 @@
|
||||
(function _testFuzzyGet []
|
||||
(let [:kiss.FuzzyMap<String> m [=>"glurg" "burgle"]]
|
||||
(assertLet [(Found "glurg" "burgle" _) (fuzzyGet m "gurg")
|
||||
NotFound (fuzzyGet m "totally different string")]
|
||||
(Assert.pass))))
|
Reference in New Issue
Block a user