FuzzyJson basic feature
This commit is contained in:
9
src/kiss_tools/Main.kiss
Normal file
9
src/kiss_tools/Main.kiss
Normal file
@@ -0,0 +1,9 @@
|
||||
// Test FuzzyJson
|
||||
(load "FuzzyJson.kiss")
|
||||
|
||||
(loadFuzzyJson "dogs" "test/fuzzy.json")
|
||||
(loadFuzzyJson "dogs" "test/fuzzy2.json")
|
||||
|
||||
(assert (= "is a very good dog" (getFuzzyJson "dogs" "Albort")))
|
||||
// duplicate definitions throw an error
|
||||
(assertThrows (getFuzzyJson "dogs" "Rangie"))
|
Reference in New Issue
Block a user